aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 53fc65667f..8164fd2a17 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -366,6 +366,7 @@ class RubyLex
if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop
else
+ spaces_of_nest.pop
corresponding_token_depth = nil
end
when :on_kw
@@ -383,6 +384,7 @@ class RubyLex
if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop
else
+ spaces_of_nest.pop
corresponding_token_depth = nil
end
end