diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-01 15:12:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-01 15:12:33 -0500 |
commit | c5f4b92ff93a40ec4e77b78d0576903e7a60eefd (patch) | |
tree | d4bdbc55eec66541aa95a03adff0403d6ab71685 /src/nvim/screen.c | |
parent | 57ce8b56488a781088cb503f0da723f59e2f9554 (diff) | |
parent | 46235a30edc4ee09fdbd4f489865982bafde247d (diff) | |
download | rneovim-c5f4b92ff93a40ec4e77b78d0576903e7a60eefd.tar.gz rneovim-c5f4b92ff93a40ec4e77b78d0576903e7a60eefd.tar.bz2 rneovim-c5f4b92ff93a40ec4e77b78d0576903e7a60eefd.zip |
Merge pull request #5613 from jamessan/vim-7.4.2183
vim-patch:7.4.2183,7.4.2194,7.4.2201,7.4.2204,0952131,7.4.2215,7.4.2225,7.4.2226,7.4.2272,7.4.2273,7.4.2277,7.4.2294
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index bf6e316c06..41acc48f97 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -581,15 +581,6 @@ void update_debug_sign(buf_T *buf, linenr_T lnum) } /* - * Return TRUE when window "wp" has a column to draw signs in. - */ -static int draw_signcolumn(win_T *wp) -{ - return (wp->w_buffer->b_signlist != NULL); -} - - -/* * Update a single window. * * This may cause the windows below it also to be redrawn (when clearing the @@ -1603,7 +1594,7 @@ static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T h ' ', ' ', hl_attr(HLF_FC)); } - if (draw_signcolumn(wp)) { + if (signcolumn_on(wp)) { int nn = n + 2; /* draw the sign column left of the fold column */ @@ -1644,8 +1635,7 @@ static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T h n = nn; } - if (draw_signcolumn(wp)) - { + if (signcolumn_on(wp)) { int nn = n + 2; /* draw the sign column after the fold column */ @@ -1757,8 +1747,8 @@ static void fold_line(win_T *wp, long fold_count, foldinfo_T *foldinfo, linenr_T * text */ RL_MEMSET(col, hl_attr(HLF_FL), wp->w_width - col); - /* If signs are being displayed, add two spaces. */ - if (draw_signcolumn(wp)) { + // If signs are being displayed, add two spaces. + if (signcolumn_on(wp)) { len = wp->w_width - col; if (len > 0) { if (len > 2) { @@ -2706,7 +2696,7 @@ win_line ( draw_state = WL_SIGN; /* Show the sign column when there are any signs in this * buffer or when using Netbeans. */ - if (draw_signcolumn(wp)) { + if (signcolumn_on(wp)) { int text_sign; /* Draw two cells with the sign value or blank. */ c_extra = ' '; |