mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 12:38:33 +00:00
@@ -3676,7 +3676,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< Minimum value is 2, maximum value is 1000.
|
< Minimum value is 2, maximum value is 1000.
|
||||||
|
|
||||||
*'linespace'* *'lsp'*
|
*'linespace'* *'lsp'*
|
||||||
'linespace' 'lsp' number (default 0, 1 for Win32 GUI)
|
'linespace' 'lsp' number (default 0)
|
||||||
global
|
global
|
||||||
{only in the GUI}
|
{only in the GUI}
|
||||||
Number of pixel lines inserted between characters. Useful if the font
|
Number of pixel lines inserted between characters. Useful if the font
|
||||||
|
@@ -90,6 +90,7 @@ Global Events *ui-global*
|
|||||||
'guifont'
|
'guifont'
|
||||||
'guifontset'
|
'guifontset'
|
||||||
'guifontwide'
|
'guifontwide'
|
||||||
|
'linespace'
|
||||||
'showtabline'
|
'showtabline'
|
||||||
'termguicolors'
|
'termguicolors'
|
||||||
|
|
||||||
|
@@ -481,6 +481,7 @@ EXTERN char_u *p_langmap; // 'langmap'
|
|||||||
EXTERN int p_lnr; // 'langnoremap'
|
EXTERN int p_lnr; // 'langnoremap'
|
||||||
EXTERN int p_lrm; // 'langremap'
|
EXTERN int p_lrm; // 'langremap'
|
||||||
EXTERN char_u *p_lm; // 'langmenu'
|
EXTERN char_u *p_lm; // 'langmenu'
|
||||||
|
EXTERN long *p_linespace; // 'linespace'
|
||||||
EXTERN char_u *p_lispwords; // 'lispwords'
|
EXTERN char_u *p_lispwords; // 'lispwords'
|
||||||
EXTERN long p_ls; // 'laststatus'
|
EXTERN long p_ls; // 'laststatus'
|
||||||
EXTERN long p_stal; // 'showtabline'
|
EXTERN long p_stal; // 'showtabline'
|
||||||
|
@@ -1399,8 +1399,9 @@ return {
|
|||||||
full_name='linespace', abbreviation='lsp',
|
full_name='linespace', abbreviation='lsp',
|
||||||
type='number', scope={'global'},
|
type='number', scope={'global'},
|
||||||
vi_def=true,
|
vi_def=true,
|
||||||
redraw={'everything'},
|
redraw={'everything', 'ui_option'},
|
||||||
enable_if=false,
|
varname='p_linespace',
|
||||||
|
defaults={if_true={vi=0}}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
full_name='lisp',
|
full_name='lisp',
|
||||||
|
@@ -24,6 +24,7 @@ describe('ui receives option updates', function()
|
|||||||
guifont='',
|
guifont='',
|
||||||
guifontset='',
|
guifontset='',
|
||||||
guifontwide='',
|
guifontwide='',
|
||||||
|
linespace=0,
|
||||||
showtabline=1,
|
showtabline=1,
|
||||||
termguicolors=false,
|
termguicolors=false,
|
||||||
}
|
}
|
||||||
@@ -58,6 +59,18 @@ describe('ui receives option updates', function()
|
|||||||
eq(changed, screen.options)
|
eq(changed, screen.options)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
command("set linespace=13")
|
||||||
|
changed.linespace = 13
|
||||||
|
screen:expect(function()
|
||||||
|
eq(changed, screen.options)
|
||||||
|
end)
|
||||||
|
|
||||||
|
command("set linespace=-11")
|
||||||
|
changed.linespace = -11
|
||||||
|
screen:expect(function()
|
||||||
|
eq(changed, screen.options)
|
||||||
|
end)
|
||||||
|
|
||||||
command("set all&")
|
command("set all&")
|
||||||
screen:expect(function()
|
screen:expect(function()
|
||||||
eq(defaults, screen.options)
|
eq(defaults, screen.options)
|
||||||
|
Reference in New Issue
Block a user