diff options
author | Matthieu Coudron <coudron@iij.ad.jp> | 2018-03-19 01:31:28 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-03-18 17:31:28 +0100 |
commit | 0848add4885adaa61218cc5394dc23d92c5812df (patch) | |
tree | b3dba378a8341209cbadad35555bdad28da1dc0a /src/nvim/move.c | |
parent | 72e4c9d8e776790e40b2a5911bb702de897fbd12 (diff) | |
download | rneovim-0848add4885adaa61218cc5394dc23d92c5812df.tar.gz rneovim-0848add4885adaa61218cc5394dc23d92c5812df.tar.bz2 rneovim-0848add4885adaa61218cc5394dc23d92c5812df.zip |
screen.c: define column width by function (#5802)
This does not change the behavior but centralizes column size for future use
(like dynamic signcolumn width depending on the maximum number of signs on a line).
The returned value is limited by the size of the `extra` tab in win_line
(currently allows for 18 ASCII characters).
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 6548d351a6..cb13a9e207 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -672,7 +672,7 @@ int win_col_off(win_T *wp) return ((wp->w_p_nu || wp->w_p_rnu) ? number_width(wp) + 1 : 0) + (cmdwin_type == 0 || wp != curwin ? 0 : 1) + (int)wp->w_p_fdc - + (signcolumn_on(wp) ? 2 : 0); + + (signcolumn_on(wp) ? win_signcol_width(wp) : 0); } int curwin_col_off(void) |