Skip to content

Commit

Permalink
Mouse clicks in visual mode should escape
Browse files Browse the repository at this point in the history
  • Loading branch information
takikawa committed May 6, 2016
1 parent 1bfd215 commit 4a8a065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions private/text.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@
;; FIXME: in gvim a mouse drag in insert mode retains
;; insert mode while doing visual mode too
(cond [(eq? type 'left-down)
;; clicks in visual mode escape the mode
(when (or (eq? mode 'visual)
(eq? mode 'visual-line))
(set-mode! 'command))
(set-vim-position! pos)
(set-position pos)
(do-caret-update)]
Expand Down

0 comments on commit 4a8a065

Please sign in to comment.