File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1007
1007
* If a font is not going to be used, free its structure.
1008
1008
*/
1009
1009
void
1010
- gui_mch_free_font (font)
1011
- GuiFont font;
1010
+ gui_mch_free_font (GuiFont font)
1012
1011
{
1013
1012
if (font != NOFONT) {
1014
1013
ASLogDebug (@" font=%p " , font);
1494
1493
1495
1494
1496
1495
void
1497
- ex_macaction (eap)
1498
- exarg_T *eap;
1496
+ ex_macaction (exarg_T *eap)
1499
1497
{
1500
1498
if (!gui.in_use ) {
1501
1499
emsg (_ (" E9000-M: Command only available in GUI mode" ));
@@ -2616,7 +2614,12 @@ void f_showdefinition(typval_T *argvars, typval_T *rettv UNUSED)
2616
2614
// just pass the output of screenpos() directly into the 2nd argument).
2617
2615
varnumber_T lnum = 0 , col = 0 ;
2618
2616
{
2619
- typval_T args[1 ] = { {VAR_UNKNOWN} };
2617
+ typval_T arg_winid_unknown;
2618
+ init_tv (&arg_winid_unknown);
2619
+ arg_winid_unknown.v_type = VAR_UNKNOWN;
2620
+
2621
+ typval_T args[1 ] = { arg_winid_unknown };
2622
+
2620
2623
typval_T lrettv;
2621
2624
2622
2625
f_getcurpos (args, &lrettv);
@@ -2628,22 +2631,24 @@ void f_showdefinition(typval_T *argvars, typval_T *rettv UNUSED)
2628
2631
}
2629
2632
{
2630
2633
typval_T arg_winid;
2634
+ init_tv (&arg_winid);
2631
2635
arg_winid.v_type = VAR_NUMBER;
2632
2636
arg_winid.vval .v_number = curwin->w_id ;
2633
2637
2634
2638
typval_T arg_lnum;
2639
+ init_tv (&arg_lnum);
2635
2640
arg_lnum.v_type = VAR_NUMBER;
2636
2641
arg_lnum.vval .v_number = lnum;
2637
2642
2638
2643
typval_T arg_col;
2644
+ init_tv (&arg_col);
2639
2645
arg_col.v_type = VAR_NUMBER;
2640
2646
arg_col.vval .v_number = col;
2641
2647
2642
- typval_T args[4 ] = {
2648
+ typval_T args[3 ] = {
2643
2649
arg_winid,
2644
2650
arg_lnum,
2645
2651
arg_col,
2646
- {VAR_UNKNOWN}
2647
2652
};
2648
2653
typval_T lrettv;
2649
2654
You can’t perform that action at this time.
0 commit comments