We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1e349 commit f889addCopy full SHA for f889add
src/shell/helper.rs
@@ -161,7 +161,7 @@ cfg_if::cfg_if! {
161
.complete_opt(&line[0..pos])
162
// as far as I can tell, there's no better way to do both completion
163
// and indentation (or even just indentation)
164
- .unwrap_or_else(|| (line.len(), vec!["\t".to_owned()])))
+ .unwrap_or_else(|| (pos, vec!["\t".to_owned()])))
165
}
166
167
0 commit comments