diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-09 23:26:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-09 23:26:40 +0100 |
commit | ee85702c10495041791f728e977b86005c4496e8 (patch) | |
tree | ad3a4d7d4d477299da5349d8b9d234243ca33d66 /src/edit.c | |
parent | b0745b221d284e381f1bd4b591cd68ea54b6a51d (diff) |
patch 8.1.2281: 'showbreak' cannot be set for one windowv8.1.2281
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 7786528d4b..a9cd2a494e 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3238,7 +3238,7 @@ oneleft(void) /* getviscol() is slow, skip it when 'showbreak' is empty, * 'breakindent' is not set and there are no multi-byte * characters */ - if ((*p_sbr == NUL && !curwin->w_p_bri + if ((*get_showbreak_value(curwin) == NUL && !curwin->w_p_bri && !has_mbyte) || getviscol() < v) break; ++width; |