diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-01-01 20:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 20:04:09 +0100 |
commit | 90f619f140f0736f67fef796d58203fe261c43af (patch) | |
tree | b6ee6639b7ac844a6aa18104591902cf416908ab /src/nvim/ex_getln.c | |
parent | f3a8c930a4b901c5313701849e7010f098bf22e6 (diff) | |
parent | 6db86cb2d3d4ca152f156dc07362f8796150fae0 (diff) | |
download | rneovim-90f619f140f0736f67fef796d58203fe261c43af.tar.gz rneovim-90f619f140f0736f67fef796d58203fe261c43af.tar.bz2 rneovim-90f619f140f0736f67fef796d58203fe261c43af.zip |
Merge pull request #13592 from bfredl/setmouse
ui: make 'mouse' handling in external UI more consistent
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 49a3c6e4b8..0f50d5153d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1884,9 +1884,6 @@ static int command_line_handle_key(CommandLineState *s) return command_line_not_changed(s); // Ignore mouse case K_MIDDLEMOUSE: - if (!mouse_has(MOUSE_COMMAND)) { - return command_line_not_changed(s); // Ignore mouse - } cmdline_paste(eval_has_provider("clipboard") ? '*' : 0, true, true); redrawcmd(); return command_line_changed(s); @@ -1910,10 +1907,6 @@ static int command_line_handle_key(CommandLineState *s) s->ignore_drag_release = false; } - if (!mouse_has(MOUSE_COMMAND)) { - return command_line_not_changed(s); // Ignore mouse - } - ccline.cmdspos = cmd_startcol(); for (ccline.cmdpos = 0; ccline.cmdpos < ccline.cmdlen; ccline.cmdpos++) { |