diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-07 14:56:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-07 14:56:25 +0200 |
commit | 899f20deae22d8cfc89d88d5f1869e5191d4b360 (patch) | |
tree | b71c28108dc7c64b7d52099df159840a1c3f0fe0 /src/gui.c | |
parent | ec572ad6a6cb0d4e71901951a70a4f038d48cb17 (diff) | |
download | vim-git-899f20deae22d8cfc89d88d5f1869e5191d4b360.tar.gz |
patch 8.1.1643: sign placement is wrong when 'foldcolumn' is setv8.1.1643
Problem: Sign placement is wrong when 'foldcolumn' is set.
Solution: Adjust the column computation. (Yee Cheng Chin, closes #4627)
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2253,7 +2253,7 @@ gui_outstr_nowrap( int col = gui.col; #ifdef FEAT_SIGN_ICONS int draw_sign = FALSE; - int signcol = 0; + int signcol = col; char_u extra[18]; # ifdef FEAT_NETBEANS_INTG int multi_sign = FALSE; @@ -2289,7 +2289,7 @@ gui_outstr_nowrap( --col; len = (int)STRLEN(s); if (len > 2) - signcol = len - 3; // Right align sign icon in the number column + signcol = col + len - 3; // Right align sign icon in the number column draw_sign = TRUE; highlight_mask = 0; } |