Skip to content

Commit

Permalink
Preventing selection removal during auto-anchored selection: Also pre…
Browse files Browse the repository at this point in the history
…vent in the case of pitching the view (not just cursor_to).
  • Loading branch information
Pistos committed Jan 11, 2014
1 parent ff5c21a commit e071f47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/diakonos/buffer.rb
Expand Up @@ -488,7 +488,7 @@ def pitch_view_to( new_top_line, do_pitch_cursor = DONT_PITCH_CURSOR, do_display
record_mark_start_and_end

if changed != 0
if ! @changing_selection && selecting?
if ! @auto_anchored && ! @changing_selection && selecting?
remove_selection DONT_DISPLAY
end

Expand Down
2 changes: 1 addition & 1 deletion lib/diakonos/version.rb
@@ -1,6 +1,6 @@
module Diakonos
VERSION = '0.9.2'
LAST_MODIFIED = 'January 7, 2014'
LAST_MODIFIED = 'January 11, 2014'

def self.parse_version( s )
if s
Expand Down

0 comments on commit e071f47

Please sign in to comment.