diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-23 09:48:18 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-01 20:02:08 -0500 |
commit | a78e8f6e1bef38bd0ad10f0681f30c43c56d703b (patch) | |
tree | 82bc46856c1e4680d91a9f60b8477837e7087185 /src | |
parent | fa6518b1da17b19a78a2c3491f2f793665e6b7c3 (diff) | |
download | rneovim-a78e8f6e1bef38bd0ad10f0681f30c43c56d703b.tar.gz rneovim-a78e8f6e1bef38bd0ad10f0681f30c43c56d703b.tar.bz2 rneovim-a78e8f6e1bef38bd0ad10f0681f30c43c56d703b.zip |
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)
https://github.com/vim/vim/commit/40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 478c9a0ff8..5f1c73480e 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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 |