Also update buffer lines when effecting eof_newline setting.

This commit is contained in:
Pistos 2011-05-09 13:38:06 -04:00
parent 7612b2f0bb
commit 2c0e990f32

View file

@ -79,8 +79,11 @@ module Diakonos
end
if line != ""
# No final newline character
if @settings[ "eof_newline" ]
line << "\n"
@lines << ''
end
f.print line
f.print "\n" if @settings[ "eof_newline" ]
end
if @settings[ 'strip_trailing_whitespace_on_save' ]