diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-18 11:52:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 18:52:19 +0800 |
commit | 2c1e7242f9bed345e520e9060e5e13fe48a023eb (patch) | |
tree | 055b59ac52cc94db96ce89480b9ada32883af826 /src/nvim/quickfix.c | |
parent | 7f7b83baef87b049b8779061065046ee161e2d7c (diff) | |
download | rneovim-2c1e7242f9bed345e520e9060e5e13fe48a023eb.tar.gz rneovim-2c1e7242f9bed345e520e9060e5e13fe48a023eb.tar.bz2 rneovim-2c1e7242f9bed345e520e9060e5e13fe48a023eb.zip |
refactor: replace char_u with char 23 (#21798)
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 32ae0fc276..f0c1011844 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3168,15 +3168,15 @@ void qf_list(exarg_T *eap) // Get the attributes for the different quickfix highlight items. Note // that this depends on syntax items defined in the qf.vim syntax file - qfFileAttr = syn_name2attr((char_u *)"qfFileName"); + qfFileAttr = syn_name2attr("qfFileName"); if (qfFileAttr == 0) { qfFileAttr = HL_ATTR(HLF_D); } - qfSepAttr = syn_name2attr((char_u *)"qfSeparator"); + qfSepAttr = syn_name2attr("qfSeparator"); if (qfSepAttr == 0) { qfSepAttr = HL_ATTR(HLF_D); } - qfLineAttr = syn_name2attr((char_u *)"qfLineNr"); + qfLineAttr = syn_name2attr("qfLineNr"); if (qfLineAttr == 0) { qfLineAttr = HL_ATTR(HLF_N); } @@ -3997,7 +3997,7 @@ static int qf_buf_add_line(qf_list_T *qfl, buf_T *buf, linenr_T lnum, const qfli IObuff + len, IOSIZE - len); } - if (ml_append_buf(buf, lnum, (char_u *)IObuff, + if (ml_append_buf(buf, lnum, IObuff, (colnr_T)strlen(IObuff) + 1, false) == FAIL) { return FAIL; } |