lib/textbringer/modes/programming_mode.rb in textbringer-0.1.1 vs lib/textbringer/modes/programming_mode.rb in textbringer-0.1.2

- old
+ new

@@ -23,9 +23,12 @@ buffer.keymap = PROGRAMMING_MODE_MAP end def newline_and_reindent n = 1 + if indent_line + n += 1 + end @buffer.save_excursion do pos = @buffer.point @buffer.beginning_of_line if /\A\s+\z/ =~ @buffer.substring(@buffer.point, pos) @buffer.delete_region(@buffer.point, pos)