diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/popupmnu.c | 10 | 
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c index af2ab73dc8..1ea12d6862 100644 --- a/src/nvim/popupmnu.c +++ b/src/nvim/popupmnu.c @@ -370,17 +370,13 @@ void pum_redraw(void)                    size++;                  }                } -              screen_puts_len(rt, (int)STRLEN(rt), row, col - size + 1, -                              attr); +              screen_puts_len(rt, (int)STRLEN(rt), row, col - size + 1, attr);                free(rt_start);                free(st); -                col -= width;              } else { -              if (st != NULL) { -                screen_puts_len(st, (int)STRLEN(st), row, col, attr); -                free(st); -              } +              screen_puts_len(st, (int)STRLEN(st), row, col, attr); +              free(st);                col += width;              }  | 
