aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-10 06:24:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-10 12:24:00 +0200
commitbbb88607c9cc60a6fa332382e9a8cc0c8726c03f (patch)
treecb749376d81a1544fdc441713aa54b7a741a8155 /src/nvim/tag.c
parentb94b59e4e88411ba7c7802827c872c1ffb896169 (diff)
downloadrneovim-bbb88607c9cc60a6fa332382e9a8cc0c8726c03f.tar.gz
rneovim-bbb88607c9cc60a6fa332382e9a8cc0c8726c03f.tar.bz2
rneovim-bbb88607c9cc60a6fa332382e9a8cc0c8726c03f.zip
vim-patch:8.0.0466: still macros that should be all-caps (#8510)
Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps. https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index d7bdf97c48..473381a13c 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -512,10 +512,10 @@ do_tag (
if (msg_col == 0)
msg_didout = FALSE; /* overwrite previous message */
msg_start();
- MSG_PUTS_ATTR(_(" # pri kind tag"), hl_attr(HLF_T));
+ MSG_PUTS_ATTR(_(" # pri kind tag"), HL_ATTR(HLF_T));
msg_clr_eos();
taglen_advance(taglen);
- MSG_PUTS_ATTR(_("file\n"), hl_attr(HLF_T));
+ MSG_PUTS_ATTR(_("file\n"), HL_ATTR(HLF_T));
for (i = 0; i < num_matches && !got_int; i++) {
parse_match(matches[i], &tagp);
@@ -535,15 +535,15 @@ do_tag (
}
msg_advance(13);
msg_outtrans_len_attr(tagp.tagname,
- (int)(tagp.tagname_end - tagp.tagname),
- hl_attr(HLF_T));
+ (int)(tagp.tagname_end - tagp.tagname),
+ HL_ATTR(HLF_T));
msg_putchar(' ');
taglen_advance(taglen);
/* Find out the actual file name. If it is long, truncate
* it and put "..." in the middle */
p = tag_full_fname(&tagp);
- msg_puts_long_attr(p, hl_attr(HLF_D));
+ msg_puts_long_attr(p, HL_ATTR(HLF_D));
xfree(p);
if (msg_col > 0)
@@ -573,8 +573,8 @@ do_tag (
p = tagp.tagkind_end;
continue;
}
- /* print all other extra fields */
- attr = hl_attr(HLF_CM);
+ // print all other extra fields
+ attr = HL_ATTR(HLF_CM);
while (*p && *p != '\r' && *p != '\n') {
if (msg_col + ptr2cells(p) >= Columns) {
msg_putchar('\n');
@@ -849,7 +849,7 @@ do_tag (
if ((num_matches > prev_num_matches || new_tag)
&& num_matches > 1) {
if (ic) {
- msg_attr((const char *)IObuff, hl_attr(HLF_W));
+ msg_attr((const char *)IObuff, HL_ATTR(HLF_W));
} else {
msg(IObuff);
}
@@ -960,7 +960,7 @@ void do_tags(exarg_T *eap)
tagstack[i].fmark.mark.lnum);
msg_outtrans(IObuff);
msg_outtrans_attr(name, tagstack[i].fmark.fnum == curbuf->b_fnum
- ? hl_attr(HLF_D) : 0);
+ ? HL_ATTR(HLF_D) : 0);
xfree(name);
}
ui_flush(); /* show one line at a time */