diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
commit | 0429857689ba98356bc80d01ebd540fe861e8db2 (patch) | |
tree | b4d039dba9e18a041b00cfe31d954931a97241dd /src/nvim/normal.c | |
parent | af46564dd6e7e709f269f041f749dc312d9c3773 (diff) | |
parent | 40b7990553997d9eabb21b746346356016b373c5 (diff) | |
download | rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.gz rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.bz2 rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.zip |
Merge PR #1820 'Reimplement builtin terminal UI with termkey/unibilium'
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index e147280723..8c7deaa243 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1834,7 +1834,6 @@ do_mouse ( bool fixindent /* PUT_FIXINDENT if fixing indent necessary */ ) { - static bool do_always = false; /* ignore 'mouse' setting next time */ static bool got_click = false; /* got a click some time back */ int which_button; /* MOUSE_LEFT, _MIDDLE or _RIGHT */ @@ -1859,23 +1858,6 @@ do_mouse ( save_cursor = curwin->w_cursor; - // When "abstract_ui" is active, always recognize mouse events, otherwise: - // - Ignore mouse event in normal mode if 'mouse' doesn't include 'n'. - // - Ignore mouse event in visual mode if 'mouse' doesn't include 'v'. - // - For command line and insert mode 'mouse' is checked before calling - // do_mouse(). - if (!abstract_ui) { - if (do_always) - do_always = false; - else { - if (VIsual_active) { - if (!mouse_has(MOUSE_VISUAL)) - return false; - } else if (State == NORMAL && !mouse_has(MOUSE_NORMAL)) - return false; - } - } - for (;; ) { which_button = get_mouse_button(KEY2TERMCAP1(c), &is_click, &is_drag); if (is_drag) { @@ -1996,7 +1978,6 @@ do_mouse ( stuffcharReadbuff('y'); stuffcharReadbuff(K_MIDDLEMOUSE); } - do_always = true; /* ignore 'mouse' setting next time */ return false; } /* |