We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc07a3 commit f65ec49Copy full SHA for f65ec49
lib/irb/ruby-lex.rb
@@ -182,6 +182,7 @@ def find_prev_spaces(line_index)
182
if line_count >= line_index
183
return prev_spaces
184
end
185
+ next if t.event == :on_tstring_content || t.event == :on_words_sep
186
if (@tokens.size - 1) > i
187
md = @tokens[i + 1].tok.match(/(\A +)/)
188
prev_spaces = md.nil? ? 0 : md[1].count(' ')
0 commit comments