diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 19:57:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 19:57:15 +0800 |
commit | 43681f237551dfebb64c44f60eb13459b82ea2ed (patch) | |
tree | ab9303393cb6190fb82e93893620e8ed56bed052 /src/nvim/plines.c | |
parent | da90be23088a3a0b8a517d66d446bdfef32e2872 (diff) | |
parent | e0ec83a9701ffd9b30a41763ad2e2326d85d8480 (diff) | |
download | rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.gz rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.tar.bz2 rneovim-43681f237551dfebb64c44f60eb13459b82ea2ed.zip |
Merge pull request #17950 from zeertzjq/vim-8.2.4029
vim-patch:8.2.{4029,4093,4100,4501,4882}: breakindent patches
Diffstat (limited to 'src/nvim/plines.c')
-rw-r--r-- | src/nvim/plines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/plines.c b/src/nvim/plines.c index 42218ac847..bed15f9e36 100644 --- a/src/nvim/plines.c +++ b/src/nvim/plines.c @@ -444,9 +444,9 @@ int win_lbr_chartabsize(chartabsize_T *cts, int *headp) // May have to add something for 'breakindent' and/or 'showbreak' // string at start of line. // Set *headp to the size of what we add. + // Do not use 'showbreak' at the NUL after the text. added = 0; - - char *const sbr = (char *)get_showbreak_value(wp); + char *const sbr = c == NUL ? empty_option : (char *)get_showbreak_value(wp); if ((*sbr != NUL || wp->w_p_bri) && wp->w_p_wrap && vcol != 0) { colnr_T sbrlen = 0; int numberwidth = win_col_off(wp); |