mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 9.1.1363: style: inconsistent indentation in various files
Problem: style: inconsistent indentation in various files Solution: fix style, updated codestyle test (Naruhiko Nishino) closes: #17254 Signed-off-by: Naruhiko Nishino <naru123456789@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
41cddfa177
commit
c2a9000bc1
@ -5582,34 +5582,34 @@ f_get(typval_T *argvars, typval_T *rettv)
|
||||
f_getcellpixels(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
{
|
||||
if (rettv_list_alloc(rettv) == FAIL)
|
||||
return;
|
||||
return;
|
||||
|
||||
#if defined(FEAT_GUI)
|
||||
if (gui.in_use)
|
||||
{
|
||||
// success pixel size and no gui.
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)gui.char_width);
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)gui.char_height);
|
||||
// success pixel size and no gui.
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)gui.char_width);
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)gui.char_height);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
struct cellsize cs;
|
||||
struct cellsize cs;
|
||||
#if defined(UNIX)
|
||||
mch_calc_cell_size(&cs);
|
||||
mch_calc_cell_size(&cs);
|
||||
#else
|
||||
// Non-Unix CUIs are not supported, so set this to -1x-1.
|
||||
cs.cs_xpixel = -1;
|
||||
cs.cs_ypixel = -1;
|
||||
// Non-Unix CUIs are not supported, so set this to -1x-1.
|
||||
cs.cs_xpixel = -1;
|
||||
cs.cs_ypixel = -1;
|
||||
#endif
|
||||
|
||||
// failed get pixel size.
|
||||
if (cs.cs_xpixel == -1)
|
||||
return;
|
||||
// failed get pixel size.
|
||||
if (cs.cs_xpixel == -1)
|
||||
return;
|
||||
|
||||
// success pixel size and no gui.
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)cs.cs_xpixel);
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)cs.cs_ypixel);
|
||||
// success pixel size and no gui.
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)cs.cs_xpixel);
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)cs.cs_ypixel);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user