vim-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 vim/vim#3059)
40385dbcdf
This commit is contained in:
parent
fa6518b1da
commit
a78e8f6e1b
|
@ -6073,10 +6073,8 @@ void buf_copy_options(buf_T *buf, int flags)
|
||||||
save_p_isk = buf->b_p_isk;
|
save_p_isk = buf->b_p_isk;
|
||||||
buf->b_p_isk = NULL;
|
buf->b_p_isk = NULL;
|
||||||
}
|
}
|
||||||
/*
|
// Always free the allocated strings. If not already initialized,
|
||||||
* Always free the allocated strings.
|
// reset 'readonly' and copy 'fileformat'.
|
||||||
* If not already initialized, set 'readonly' and copy 'fileformat'.
|
|
||||||
*/
|
|
||||||
if (!buf->b_p_initialized) {
|
if (!buf->b_p_initialized) {
|
||||||
free_buf_options(buf, true);
|
free_buf_options(buf, true);
|
||||||
buf->b_p_ro = false; // don't copy readonly
|
buf->b_p_ro = false; // don't copy readonly
|
||||||
|
|
Loading…
Reference in New Issue