comparison src/buffer.c @ 14479:3375a8cbb442 v8.1.0253

patch 8.1.0253: saving and restoring window title does not always work commit https://github.com/vim/vim/commit/40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 7 22:31:44 2018 +0200 patch 8.1.0253: saving and restoring window title does not always work Problem: Saving and restoring window title does not always work. Solution: Use the stack push and pop commands. (Kouichi Iwamoto, closes #3059)
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Aug 2018 22:45:06 +0200
parents 95a03484df27
children 80f715651c4c
comparison
equal deleted inserted replaced
14478:b35bae59c521 14479:3375a8cbb442
3796 { 3796 {
3797 vim_free(*last); 3797 vim_free(*last);
3798 if (str == NULL) 3798 if (str == NULL)
3799 { 3799 {
3800 *last = NULL; 3800 *last = NULL;
3801 mch_restore_title(last == &lasttitle ? 1 : 2); 3801 mch_restore_title(
3802 last == &lasttitle ? SAVE_RESTORE_TITLE : SAVE_RESTORE_ICON);
3802 } 3803 }
3803 else 3804 else
3804 { 3805 {
3805 *last = vim_strsave(str); 3806 *last = vim_strsave(str);
3806 return TRUE; 3807 return TRUE;