Fixed line number painting bug seen when switching to a buffer that is shorter than the window height. Thank you to nickrw for reporting this.

This commit is contained in:
Pistos 2009-05-14 10:45:54 -04:00
parent 1e5c04c558
commit 75548e024a
2 changed files with 7 additions and 1 deletions

View file

@ -320,6 +320,12 @@ module Diakonos
# Paint the empty space below the file if the file is too short to fit in one screen.
( y...@diakonos.main_window_height ).each do |y|
if @win_line_numbers
@win_line_numbers.setpos( y, 0 )
@win_line_numbers.attrset @settings[ 'view.line_numbers.format' ]
@win_line_numbers.addstr( ' ' * @settings[ 'view.line_numbers.width' ] )
end
@win_main.setpos( y, 0 )
@win_main.attrset @default_formatting
linestr = " " * Curses::cols

View file

@ -1,4 +1,4 @@
module Diakonos
VERSION = '0.8.9'
LAST_MODIFIED = 'May 7, 2009'
LAST_MODIFIED = 'May 14, 2009'
end