Skip to content

Commit f889add

Browse files
committed
Fix panic (debug), no indend (release) in REPL.
1 parent ca1e349 commit f889add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shell/helper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ cfg_if::cfg_if! {
161161
.complete_opt(&line[0..pos])
162162
// as far as I can tell, there's no better way to do both completion
163163
// and indentation (or even just indentation)
164-
.unwrap_or_else(|| (line.len(), vec!["\t".to_owned()])))
164+
.unwrap_or_else(|| (pos, vec!["\t".to_owned()])))
165165
}
166166
}
167167

0 commit comments

Comments
 (0)