aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-01-01 20:04:09 +0100
committerGitHub <noreply@github.com>2021-01-01 20:04:09 +0100
commit90f619f140f0736f67fef796d58203fe261c43af (patch)
treeb6ee6639b7ac844a6aa18104591902cf416908ab /src/nvim/message.c
parentf3a8c930a4b901c5313701849e7010f098bf22e6 (diff)
parent6db86cb2d3d4ca152f156dc07362f8796150fae0 (diff)
downloadrneovim-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/message.c')
-rw-r--r--src/nvim/message.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 02a7732f5c..f94529c687 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1157,15 +1157,7 @@ void wait_return(int redraw)
|| c == K_MIDDLEDRAG || c == K_MIDDLERELEASE
|| c == K_RIGHTDRAG || c == K_RIGHTRELEASE
|| c == K_MOUSELEFT || c == K_MOUSERIGHT
- || c == K_MOUSEDOWN || c == K_MOUSEUP
- || (!mouse_has(MOUSE_RETURN)
- && mouse_row < msg_row
- && (c == K_LEFTMOUSE
- || c == K_MIDDLEMOUSE
- || c == K_RIGHTMOUSE
- || c == K_X1MOUSE
- || c == K_X2MOUSE))
- );
+ || c == K_MOUSEDOWN || c == K_MOUSEUP);
os_breakcheck();
/*
* Avoid that the mouse-up event causes visual mode to start.