aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 53b2baf1bb..af3f5c999f 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -4691,10 +4691,7 @@ win_redr_status_matches (
if (matches == NULL) /* interrupted completion? */
return;
- if (has_mbyte)
- buf = xmalloc(Columns * MB_MAXBYTES + 1);
- else
- buf = xmalloc(Columns + 1);
+ buf = xmalloc(has_mbyte ? Columns * MB_MAXBYTES + 1 : Columns + 1);
if (match == -1) { /* don't show match but original text */
match = 0;