Mercurial > vim
diff src/term.c @ 5076:19ed30f7cef7 v7.3.1281
updated for version 7.3.1281
Problem: When 'ttymouse' is set to "xterm2" clicking in column 123 moves
the cursor to column 96. (Kevin Goodsell)
Solution: Decode KE_CSI.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 01 Jul 2013 20:06:19 +0200 |
parents | cf52d2a8c05c |
children | 8b7baf39a345 |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -2947,8 +2947,10 @@ get_bytes_from_buf(buf, bytes, num_bytes return -1; if (buf[len++] == (int)KS_ZERO) c = NUL; - ++len; /* skip KE_FILLER */ - /* else it should be KS_SPECIAL, and c already equals K_SPECIAL */ + /* else it should be KS_SPECIAL; when followed by KE_FILLER c is + * K_SPECIAL, or followed by KE_CSI and c must be CSI. */ + if (buf[len++] == (int)KE_CSI) + c = CSI; } else if (c == CSI && buf[len] == KS_EXTRA && buf[len + 1] == (int)KE_CSI)