Skip to content

Commit 7baa014

Browse files
glepnirchrisbra
authored andcommitted
patch 9.1.0772: some missing changes from v9.1.0771
Problem: some missing changes from v9.1.0771 Solution: use correct highlighting attribute and adjust comments (glepnir) closes: #15836 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 0fe17f8 commit 7baa014

4 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/insexpand.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ struct compl_S
105105
int cp_flags; // CP_ values
106106
int cp_number; // sequence number
107107
int cp_score; // fuzzy match score
108-
int cp_user_abbr_hlattr; // highlight attribute to combine with
109-
// for abbr.
108+
int cp_user_abbr_hlattr; // highlight attribute for abbr
110109
int cp_user_kind_hlattr; // highlight attribute for kind
111110
};
112111

src/popupmenu.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,7 @@ pum_redraw(void)
777777
}
778778

779779
if (attrs != NULL)
780-
{
781-
vim_free(attrs);
782-
attrs = NULL;
783-
}
780+
VIM_CLEAR(attrs);
784781

785782
if (*p != TAB)
786783
break;
@@ -790,14 +787,14 @@ pum_redraw(void)
790787
if (pum_rl)
791788
{
792789
screen_puts_len((char_u *)" ", 2, row, col - 1,
793-
orig_attr);
790+
attr);
794791
col -= 2;
795792
}
796793
else
797794
#endif
798795
{
799796
screen_puts_len((char_u *)" ", 2, row, col,
800-
orig_attr);
797+
attr);
801798
col += 2;
802799
}
803800
totwidth += 2;
@@ -826,7 +823,7 @@ pum_redraw(void)
826823
if (pum_rl)
827824
{
828825
screen_fill(row, row + 1, pum_col - basic_width - n + 1,
829-
col + 1, ' ', ' ', attr);
826+
col + 1, ' ', ' ', orig_attr);
830827
col = pum_col - basic_width - n;
831828
}
832829
else

src/structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4474,7 +4474,7 @@ typedef struct
44744474
char_u *pum_info; // extra info
44754475
int pum_score; // fuzzy match score
44764476
int pum_idx; // index of item before sorting by score
4477-
int pum_user_abbr_hlattr; // highlight attribute to combine with
4477+
int pum_user_abbr_hlattr; // highlight attribute for abbr
44784478
int pum_user_kind_hlattr; // highlight attribute for kind
44794479
} pumitem_T;
44804480

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
772,
707709
/**/
708710
771,
709711
/**/

0 commit comments

Comments
 (0)