diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-24 21:37:38 +0100 |
|---|---|---|
| committer | Björn Linse <bjorn.linse@gmail.com> | 2019-02-02 16:31:49 +0100 |
| commit | 69bdc4f0726ae0f3a2610dadbaf4156acfe74f49 (patch) | |
| tree | e90eba8bcf0ed386a414e1644055e6e4651a3f5b /src/nvim/tui | |
| parent | 2405cf82552e93eb3d5441d2f109647b97af5521 (diff) | |
| download | rneovim-69bdc4f0726ae0f3a2610dadbaf4156acfe74f49.tar.gz rneovim-69bdc4f0726ae0f3a2610dadbaf4156acfe74f49.tar.bz2 rneovim-69bdc4f0726ae0f3a2610dadbaf4156acfe74f49.zip | |
ui/compositor: add redraws needed due to intersected doublewidth chars.
Diffstat (limited to 'src/nvim/tui')
| -rw-r--r-- | src/nvim/tui/tui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 2e26a75be1..a1a43c3e3a 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1273,7 +1273,7 @@ static void tui_option_set(UI *ui, String name, Object value) static void tui_raw_line(UI *ui, Integer g, Integer linerow, Integer startcol, Integer endcol, Integer clearcol, Integer clearattr, - Boolean wrap, const schar_T *chunk, + LineFlags flags, const schar_T *chunk, const sattr_T *attrs) { TUIData *data = ui->data; @@ -1295,7 +1295,8 @@ static void tui_raw_line(UI *ui, Integer g, Integer linerow, Integer startcol, (int)clearattr); } - if (wrap && ui->width == grid->width && linerow + 1 < grid->height) { + if (flags & kLineFlagWrap && ui->width == grid->width + && linerow + 1 < grid->height) { // Only do line wrapping if the grid width is equal to the terminal // width and the line continuation is within the grid. |