diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-10 15:01:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 15:01:02 +0800 |
commit | 9e9322b222566c0f92bb6df034d9b316317c81d5 (patch) | |
tree | 8dc2885e2b65ac1eb4e973bc44face735b5c013f /src/nvim/normal.c | |
parent | a7b1c8893c602196541e94b8b24c4c70c32c25b0 (diff) | |
parent | 05f643f9d235b0db881acf94ce05ad3359ffb058 (diff) | |
download | rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.tar.gz rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.tar.bz2 rneovim-9e9322b222566c0f92bb6df034d9b316317c81d5.zip |
Merge pull request #17653 from dundargoc/chore/lgtm
fix lgtm warnings
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 7fe6469527..5c39e9c8bf 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2105,10 +2105,9 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent) } else { // MOUSE_RIGHT stuffcharReadbuff('#'); } - } - // Handle double clicks, unless on status line - else if (in_status_line) { - } else if (in_sep_line) { + } else if (in_status_line || in_sep_line) { + // Do nothing if on status line or vertical separator + // Handle double clicks otherwise } else if ((mod_mask & MOD_MASK_MULTI_CLICK) && (State & (NORMAL | INSERT))) { if (is_click || !VIsual_active) { if (VIsual_active) { |