mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
vim-patch:8.1.1564: sign column takes up space
Problem: Sign column takes up space. (Adam Stankiewicz)
Solution: Optionally put signs in the number column. (Yegappan Lakshmanan,
closes vim/vim#4555, closes vim/vim#4515)
394c5d8870
This commit is contained in:
@@ -7404,6 +7404,7 @@ int win_signcol_count(win_T *wp)
|
|||||||
int maximum = 1, needed_signcols;
|
int maximum = 1, needed_signcols;
|
||||||
const char *scl = (const char *)wp->w_p_scl;
|
const char *scl = (const char *)wp->w_p_scl;
|
||||||
|
|
||||||
|
// Note: It checks "no" or "number" in 'signcolumn' option
|
||||||
if (*scl == 'n'
|
if (*scl == 'n'
|
||||||
&& (*(scl + 1) == 'o' || (*(scl + 1) == 'u'
|
&& (*(scl + 1) == 'o' || (*(scl + 1) == 'u'
|
||||||
&& (wp->w_p_nu || wp->w_p_rnu)))) {
|
&& (wp->w_p_nu || wp->w_p_rnu)))) {
|
||||||
|
@@ -4477,7 +4477,7 @@ void screen_adjust_grid(ScreenGrid **grid, int *row_off, int *col_off)
|
|||||||
// If 'nrcol' is TRUE, the sign is going to be displayed in the number column.
|
// If 'nrcol' is TRUE, the sign is going to be displayed in the number column.
|
||||||
// Otherwise the sign is going to be displayed in the sign column.
|
// Otherwise the sign is going to be displayed in the sign column.
|
||||||
static void get_sign_display_info(
|
static void get_sign_display_info(
|
||||||
int nrcol,
|
bool nrcol,
|
||||||
win_T *wp,
|
win_T *wp,
|
||||||
linenr_T lnum,
|
linenr_T lnum,
|
||||||
int row,
|
int row,
|
||||||
|
@@ -6,6 +6,7 @@ endif
|
|||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
|
" Note: In neovim, swapfile feature must be disabled
|
||||||
set noswapfile
|
set noswapfile
|
||||||
|
|
||||||
func Test_sign()
|
func Test_sign()
|
||||||
|
Reference in New Issue
Block a user