mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28: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.
|
||||
|
||||
*'linespace'* *'lsp'*
|
||||
'linespace' 'lsp' number (default 0, 1 for Win32 GUI)
|
||||
'linespace' 'lsp' number (default 0)
|
||||
global
|
||||
{only in the GUI}
|
||||
Number of pixel lines inserted between characters. Useful if the font
|
||||
|
@@ -90,6 +90,7 @@ Global Events *ui-global*
|
||||
'guifont'
|
||||
'guifontset'
|
||||
'guifontwide'
|
||||
'linespace'
|
||||
'showtabline'
|
||||
'termguicolors'
|
||||
|
||||
|
@@ -481,6 +481,7 @@ EXTERN char_u *p_langmap; // 'langmap'
|
||||
EXTERN int p_lnr; // 'langnoremap'
|
||||
EXTERN int p_lrm; // 'langremap'
|
||||
EXTERN char_u *p_lm; // 'langmenu'
|
||||
EXTERN long *p_linespace; // 'linespace'
|
||||
EXTERN char_u *p_lispwords; // 'lispwords'
|
||||
EXTERN long p_ls; // 'laststatus'
|
||||
EXTERN long p_stal; // 'showtabline'
|
||||
|
@@ -1399,8 +1399,9 @@ return {
|
||||
full_name='linespace', abbreviation='lsp',
|
||||
type='number', scope={'global'},
|
||||
vi_def=true,
|
||||
redraw={'everything'},
|
||||
enable_if=false,
|
||||
redraw={'everything', 'ui_option'},
|
||||
varname='p_linespace',
|
||||
defaults={if_true={vi=0}}
|
||||
},
|
||||
{
|
||||
full_name='lisp',
|
||||
|
@@ -24,6 +24,7 @@ describe('ui receives option updates', function()
|
||||
guifont='',
|
||||
guifontset='',
|
||||
guifontwide='',
|
||||
linespace=0,
|
||||
showtabline=1,
|
||||
termguicolors=false,
|
||||
}
|
||||
@@ -58,6 +59,18 @@ describe('ui receives option updates', function()
|
||||
eq(changed, screen.options)
|
||||
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&")
|
||||
screen:expect(function()
|
||||
eq(defaults, screen.options)
|
||||
|
Reference in New Issue
Block a user