diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-23 14:12:56 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 16:24:07 +0100 |
commit | 820c81e638768994f4e51fdb87eadf31664048ff (patch) | |
tree | 7f75b2710c29318c9e4022b0f248efbd82077f49 /src/nvim/mbyte.c | |
parent | 44b8e58f33f82ca1a7c5dbb879a688e317026040 (diff) | |
download | rneovim-820c81e638768994f4e51fdb87eadf31664048ff.tar.gz rneovim-820c81e638768994f4e51fdb87eadf31664048ff.tar.bz2 rneovim-820c81e638768994f4e51fdb87eadf31664048ff.zip |
multigrid: various cleanup (types, unused parameters)
Handle the rare case of full highlight table properly
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 73748154e7..ead6b4405d 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -556,14 +556,6 @@ size_t mb_string2cells(const char_u *str) return clen; } -/// Return number of display cells for char at ScreenLines[off]. -/// We make sure that the offset used is less than "max_off". -int utf_off2cells(ScreenGrid *grid, unsigned off, unsigned max_off) -{ - return (off + 1 < max_off - && grid->ScreenLines[off + 1][0] == 0) ? 2 : 1; -} - /// Convert a UTF-8 byte sequence to a wide character /// /// If the sequence is illegal or truncated by a NUL then the first byte is |