lib/textbringer/modes/ruby_mode.rb in textbringer-0.2.7 vs lib/textbringer/modes/ruby_mode.rb in textbringer-0.2.8

- old
+ new

@@ -232,15 +232,15 @@ @buffer.backward_line else break end end + @buffer.looking_at?(/[ \t]*/) + base_indentation = @buffer.match_string(0). + gsub(/\t/, " " * @buffer[:tab_width]).size else - @buffer.backward_line + base_indentation = 0 end - @buffer.looking_at?(/[ \t]*/) - base_indentation = @buffer.match_string(0). - gsub(/\t/, " " * @buffer[:tab_width]).size @buffer.goto_char(bol_pos) if line.nil? || @buffer.looking_at?(/[ \t]*([}\])]|(end|else|elsif|when|rescue|ensure)\b)/) indentation = base_indentation else