comparison src/quickfix.c @ 11158:501f46f7644c v8.0.0466

patch 8.0.0466: still macros that should be all-caps commit https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 17:23:31 2017 +0100 patch 8.0.0466: still macros that should be all-caps Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 17:30:06 +0100
parents f4ea50924c6d
children 13c660bd07b2
comparison
equal deleted inserted replaced
11157:35a1705f4d02 11158:501f46f7644c
2553 sprintf((char *)IObuff, "%2d", i); 2553 sprintf((char *)IObuff, "%2d", i);
2554 else 2554 else
2555 vim_snprintf((char *)IObuff, IOSIZE, "%2d %s", 2555 vim_snprintf((char *)IObuff, IOSIZE, "%2d %s",
2556 i, (char *)fname); 2556 i, (char *)fname);
2557 msg_outtrans_attr(IObuff, i == qi->qf_lists[qi->qf_curlist].qf_index 2557 msg_outtrans_attr(IObuff, i == qi->qf_lists[qi->qf_curlist].qf_index
2558 ? hl_attr(HLF_L) : hl_attr(HLF_D)); 2558 ? HL_ATTR(HLF_L) : HL_ATTR(HLF_D));
2559 if (qfp->qf_lnum == 0) 2559 if (qfp->qf_lnum == 0)
2560 IObuff[0] = NUL; 2560 IObuff[0] = NUL;
2561 else if (qfp->qf_col == 0) 2561 else if (qfp->qf_col == 0)
2562 sprintf((char *)IObuff, ":%ld", qfp->qf_lnum); 2562 sprintf((char *)IObuff, ":%ld", qfp->qf_lnum);
2563 else 2563 else
2564 sprintf((char *)IObuff, ":%ld col %d", 2564 sprintf((char *)IObuff, ":%ld col %d",
2565 qfp->qf_lnum, qfp->qf_col); 2565 qfp->qf_lnum, qfp->qf_col);
2566 sprintf((char *)IObuff + STRLEN(IObuff), "%s:", 2566 sprintf((char *)IObuff + STRLEN(IObuff), "%s:",
2567 (char *)qf_types(qfp->qf_type, qfp->qf_nr)); 2567 (char *)qf_types(qfp->qf_type, qfp->qf_nr));
2568 msg_puts_attr(IObuff, hl_attr(HLF_N)); 2568 msg_puts_attr(IObuff, HL_ATTR(HLF_N));
2569 if (qfp->qf_pattern != NULL) 2569 if (qfp->qf_pattern != NULL)
2570 { 2570 {
2571 qf_fmt_text(qfp->qf_pattern, IObuff, IOSIZE); 2571 qf_fmt_text(qfp->qf_pattern, IObuff, IOSIZE);
2572 STRCAT(IObuff, ":"); 2572 STRCAT(IObuff, ":");
2573 msg_puts(IObuff); 2573 msg_puts(IObuff);