diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-06-13 11:11:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 11:11:12 +0200 |
commit | 463da8480685dbd53335b4e3f0a6d37cacbacac4 (patch) | |
tree | 8d98f9e625737b89f3336f6cd4fab0c0dc825e0c /src/nvim/mouse.c | |
parent | f4ba20d1c0b6c45b2c50d3cb23ce0d0b365d3dde (diff) | |
parent | 050f3975f6b44da6316de189929625e1c382a6c8 (diff) | |
download | rneovim-463da8480685dbd53335b4e3f0a6d37cacbacac4.tar.gz rneovim-463da8480685dbd53335b4e3f0a6d37cacbacac4.tar.bz2 rneovim-463da8480685dbd53335b4e3f0a6d37cacbacac4.zip |
Merge pull request #7992 from bfredl/mbscreen
Represent Screen state as UTF-8
Diffstat (limited to 'src/nvim/mouse.c')
-rw-r--r-- | src/nvim/mouse.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 6f636f643a..96d20b6a32 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -108,12 +108,13 @@ retnomove: goto retnomove; // ugly goto... // Remember the character under the mouse, it might be a '-' or '+' in the - // fold column. + // fold column. NB: only works for ASCII chars! if (row >= 0 && row < Rows && col >= 0 && col <= Columns - && ScreenLines != NULL) - mouse_char = ScreenLines[LineOffset[row] + (unsigned)col]; - else + && ScreenLines != NULL) { + mouse_char = ScreenLines[LineOffset[row] + (unsigned)col][0]; + } else { mouse_char = ' '; + } old_curwin = curwin; old_cursor = curwin->w_cursor; |