diff options
author | glebtv <glebtv@gmail.com> | 2015-01-24 03:15:53 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-26 01:48:52 -0500 |
commit | c88ad49cf191d68ad547fa9ba937fc1733fb246f (patch) | |
tree | 880ff051842d95b5326169d02833598c7fa0a269 | |
parent | 65adcc269971b55418769a8eca8e49f3e0191e14 (diff) | |
download | rneovim-c88ad49cf191d68ad547fa9ba937fc1733fb246f.tar.gz rneovim-c88ad49cf191d68ad547fa9ba937fc1733fb246f.tar.bz2 rneovim-c88ad49cf191d68ad547fa9ba937fc1733fb246f.zip |
fix #1839: decrement mouse row and col
- regression by 04c0658024a98a0586997f0ea8af1e3f774cc83e
-rw-r--r-- | src/nvim/term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/term.c b/src/nvim/term.c index 78fd3c6a67..14c087cb60 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -3245,11 +3245,11 @@ int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen) if (key_name[0] == KS_SGR_MOUSE) mouse_code += 32; - mouse_col = getdigits_int(&p); + mouse_col = getdigits_int(&p) - 1; if (*p++ != ';') return -1; - mouse_row = getdigits_int(&p); + mouse_row = getdigits_int(&p) - 1; if (key_name[0] == KS_SGR_MOUSE && *p == 'm') mouse_code |= MOUSE_RELEASE; else if (*p != 'M') |