mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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;
|
||||
buf->b_p_isk = NULL;
|
||||
}
|
||||
/*
|
||||
* Always free the allocated strings.
|
||||
* If not already initialized, set 'readonly' and copy 'fileformat'.
|
||||
*/
|
||||
// Always free the allocated strings. If not already initialized,
|
||||
// reset 'readonly' and copy 'fileformat'.
|
||||
if (!buf->b_p_initialized) {
|
||||
free_buf_options(buf, true);
|
||||
buf->b_p_ro = false; // don't copy readonly
|
||||
|
Loading…
Reference in New Issue
Block a user