Permalink
Browse files

Fixed display regression: now refreshes display when opening an alrea…

…dy-opened file.
  • Loading branch information...
1 parent d65ca52 commit 311f533682b40985b9330e0db59f3c251c64568e @Pistos committed Aug 9, 2011
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/diakonos/functions/buffers.rb
  2. +1 −1 lib/diakonos/version.rb
@@ -269,9 +269,11 @@ def open_file( filename = nil, meta = {} )
display_buffer buffer
end
end
- elsif existing_buffer && last_row
+ elsif existing_buffer
if switch_to( existing_buffer, do_display: false )
- existing_buffer.cursor_to last_row, last_col || 0, Buffer::DONT_DISPLAY
+ if last_row
+ existing_buffer.cursor_to last_row, last_col || 0, Buffer::DONT_DISPLAY
+ end
display_buffer existing_buffer
end
end
View
@@ -1,6 +1,6 @@
module Diakonos
VERSION = '0.9.1'
- LAST_MODIFIED = 'August 8, 2011'
+ LAST_MODIFIED = 'August 9, 2011'
def self.parse_version( s )
if s

0 comments on commit 311f533

Please sign in to comment.