diff options
Diffstat (limited to 'cli/tools/repl/editor.rs')
-rw-r--r-- | cli/tools/repl/editor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/tools/repl/editor.rs b/cli/tools/repl/editor.rs index 759ff23d3..a27671b21 100644 --- a/cli/tools/repl/editor.rs +++ b/cli/tools/repl/editor.rs @@ -530,8 +530,7 @@ impl ConditionalEventHandler for TabEventHandler { if ctx.line().is_empty() || ctx.line()[..ctx.pos()] .chars() - .rev() - .next() + .next_back() .filter(|c| c.is_whitespace()) .is_some() { |