File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -92,3 +92,12 @@ func Test_win_getid()
9292
9393 only !
9494endfunc
95+
96+ func Test_win_getid_curtab ()
97+ tabedit X
98+ tabfirst
99+ copen
100+ only
101+ call assert_equal (win_getid (1 ), win_getid (1 , 1 ))
102+ tabclose !
103+ endfunc
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764764
765765static int included_patches [] =
766766{ /* Add new patch number below this line */
767+ /**/
768+ 83 ,
767769/**/
768770 82 ,
769771/**/
Original file line number Diff line number Diff line change @@ -7133,7 +7133,10 @@ win_getid(typval_T *argvars)
71337133 break ;
71347134 if (tp == NULL )
71357135 return -1 ;
7136- wp = tp -> tp_firstwin ;
7136+ if (tp == curtab )
7137+ wp = firstwin ;
7138+ else
7139+ wp = tp -> tp_firstwin ;
71377140 }
71387141 for ( ; wp != NULL ; wp = wp -> w_next )
71397142 if (-- winnr == 0 )
You can’t perform that action at this time.
0 commit comments