1
0
forked from aniani/vim

patch 9.1.1449: typo in pum_display()

Problem:  typo in pum_display()
Solution: update the comment, remove empty new lines
          (glepnir)

closes: #17506

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
glepnir
2025-06-10 20:23:42 +02:00
committed by Christian Brabandt
parent 72c3ca9f8d
commit ed4eb74f7a
2 changed files with 3 additions and 3 deletions

View File

@@ -165,7 +165,6 @@ pum_display(
&& pum_win_row - above_row > (below_row - above_row) / 2) && pum_win_row - above_row > (below_row - above_row) / 2)
{ {
// pum above "pum_win_row" // pum above "pum_win_row"
if (State == MODE_CMDLINE) if (State == MODE_CMDLINE)
// for cmdline pum, no need for context lines // for cmdline pum, no need for context lines
context_lines = 0; context_lines = 0;
@@ -192,13 +191,12 @@ pum_display(
else else
{ {
// pum below "pum_win_row" // pum below "pum_win_row"
if (State == MODE_CMDLINE) if (State == MODE_CMDLINE)
// for cmdline pum, no need for context lines // for cmdline pum, no need for context lines
context_lines = 0; context_lines = 0;
else else
{ {
// Leave two lines of context if possible // Leave three lines of context if possible
validate_cheight(); validate_cheight();
cline_visible_offset = curwin->w_cline_row + cline_visible_offset = curwin->w_cline_row +
curwin->w_cline_height - curwin->w_wrow; curwin->w_cline_height - curwin->w_wrow;

View File

@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1449,
/**/ /**/
1448, 1448,
/**/ /**/