diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-22 18:53:49 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-22 18:54:52 +0300 |
commit | 4d43ce85f187a9d6deed9266098dd82fec07be23 (patch) | |
tree | d09927c149ef9b7ee8d50fa41e603899ef23a3fe | |
parent | b7a46f22999ed5e1f6757b803bcab683575afb5a (diff) | |
download | rneovim-4d43ce85f187a9d6deed9266098dd82fec07be23.tar.gz rneovim-4d43ce85f187a9d6deed9266098dd82fec07be23.tar.bz2 rneovim-4d43ce85f187a9d6deed9266098dd82fec07be23.zip |
quickfix: Fix PVS/V547,V560: no conversion with fixed &encoding
-rw-r--r-- | src/nvim/quickfix.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 1ff38b573e..a44a305f22 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -4740,14 +4740,6 @@ void ex_helpgrep(exarg_T *eap) regmatch.regprog = vim_regcomp(eap->arg, RE_MAGIC + RE_STRING); regmatch.rm_ic = FALSE; if (regmatch.regprog != NULL) { - vimconv_T vc; - - /* Help files are in utf-8 or latin1, convert lines when 'encoding' - * differs. */ - vc.vc_type = CONV_NONE; - if (!enc_utf8) - convert_setup(&vc, (char_u *)"utf-8", p_enc); - /* create a new quickfix list */ qf_new_list(qi, *eap->cmdlinep); @@ -4780,15 +4772,6 @@ void ex_helpgrep(exarg_T *eap) lnum = 1; while (!vim_fgets(IObuff, IOSIZE, fd) && !got_int) { char_u *line = IObuff; - /* Convert a line if 'encoding' is not utf-8 and - * the line contains a non-ASCII character. */ - if (vc.vc_type != CONV_NONE - && has_non_ascii(IObuff)) { - line = string_convert(&vc, IObuff, NULL); - if (line == NULL) - line = IObuff; - } - if (vim_regexec(®match, line, (colnr_T)0)) { int l = (int)STRLEN(line); @@ -4831,8 +4814,6 @@ void ex_helpgrep(exarg_T *eap) } vim_regfree(regmatch.regprog); - if (vc.vc_type != CONV_NONE) - convert_setup(&vc, NULL, NULL); qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE; qi->qf_lists[qi->qf_curlist].qf_ptr = |