summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/screen.c b/src/screen.c
index fd69cf0b3d..ac24a16464 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4726,7 +4726,7 @@ set_chars_option(win_T *wp, char_u *value, int is_listchars, int apply)
}
// first round: check for valid value, second round: assign values
- for (round = 0; round <= 1; ++round)
+ for (round = 0; round <= (apply ? 1 : 0); ++round)
{
if (round > 0)
{
@@ -4913,11 +4913,6 @@ set_chars_option(win_T *wp, char_u *value, int is_listchars, int apply)
wp->w_fill_chars = fill_chars;
}
}
- else if (is_listchars)
- {
- vim_free(lcs_chars.multispace);
- vim_free(lcs_chars.leadmultispace);
- }
return NULL; // no error
}