File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,8 @@ static char *(features[]) =
748
748
749
749
static int included_patches [] =
750
750
{ /* Add new patch number below this line */
751
+ /**/
752
+ 1704 ,
751
753
/**/
752
754
1703 ,
753
755
/**/
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ do_window(
340
340
/* cursor to last accessed (previous) window */
341
341
case 'p' :
342
342
case Ctrl_P :
343
- if (prevwin == NULL )
343
+ if (! win_valid ( prevwin ) )
344
344
beep_flush ();
345
345
else
346
346
win_goto (prevwin );
@@ -4577,8 +4577,15 @@ win_free(
4577
4577
unref_var_dict (wp -> w_vars );
4578
4578
#endif
4579
4579
4580
- if (prevwin == wp )
4581
- prevwin = NULL ;
4580
+ {
4581
+ tabpage_T * ttp ;
4582
+
4583
+ if (prevwin == wp )
4584
+ prevwin = NULL ;
4585
+ for (ttp = first_tabpage ; ttp != NULL ; ttp = ttp -> tp_next )
4586
+ if (ttp -> tp_prevwin == wp )
4587
+ ttp -> tp_prevwin = NULL ;
4588
+ }
4582
4589
win_free_lsize (wp );
4583
4590
4584
4591
for (i = 0 ; i < wp -> w_tagstacklen ; ++ i )
You can’t perform that action at this time.
0 commit comments