aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/option.c6
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