summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-06 21:24:34 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-06 21:24:34 +0100
commit0937b9fb244949b7ce9bfcf8398d7495b9b6aa85 (patch)
tree5788fe9abedf4e1c425b39b26020aae7ad7bd6bb /src/drawline.c
parent3725116f6ec3b5c01e456b151a60c0690e04f76c (diff)
patch 9.0.0681: "<<<" shows for 'smoothscroll' even when 'showbreak is setv9.0.0681
Problem: "<<<" shows for 'smoothscroll' even when 'showbreak is set. Solution: When 'showbreak' is set do not display "<<<".
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c
index f738e76b4e..e7f9fabab1 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -745,12 +745,17 @@ text_prop_position(
/*
* Call screen_line() using values from "wlv".
- * Also takes care of putting "<<<" on the first line for 'smoothscroll'.
+ * Also takes care of putting "<<<" on the first line for 'smoothscroll'
+ * when 'showbreak' is not set.
*/
static void
wlv_screen_line(win_T *wp, winlinevars_T *wlv, int negative_width)
{
- if (wlv->row == 0 && wp->w_skipcol > 0)
+ if (wlv->row == 0 && wp->w_skipcol > 0
+#if defined(FEAT_LINEBREAK)
+ && *get_showbreak_value(wp) == NUL
+#endif
+ )
{
int off = (int)(current_ScreenLine - ScreenLines);