diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 3dc72e15d..755f74ef2 100644 --- a/src/main.c +++ b/src/main.c @@ -1059,6 +1059,7 @@ main_loop(cmdwin, noexmode) /* msg_attr_keep() will set keep_msg to NULL, must free the * string here. */ p = keep_msg; + keep_msg = NULL; msg_attr(p, keep_msg_attr); vim_free(p); } @@ -1169,7 +1170,7 @@ getout(exitval) for (tp = first_tabpage; tp != NULL; tp = next_tp) { next_tp = tp->tp_next; - for (wp = (tp->tp_topframe == topframe) + for (wp = (tp == curtab) ? firstwin : tp->tp_firstwin; wp != NULL; wp = wp->w_next) { buf = wp->w_buffer; |