mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix panic (debug), no indend (release) in REPL.
This commit is contained in:
1 parent
ca1e349a18
commit
f889add815
1 file changed
+1
-1
+1
-1
@@ -161,7 +161,7 @@ cfg_if::cfg_if! {
|
||||
.complete_opt(&line[0..pos])
|
||||
// as far as I can tell, there's no better way to do both completion
|
||||
// and indentation (or even just indentation)
|
||||
.unwrap_or_else(|| (line.len(), vec!["\t".to_owned()])))
|
||||
.unwrap_or_else(|| (pos, vec!["\t".to_owned()])))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user