aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-07-29 21:41:45 +0300
committerZyX <kp-pav@yandex.ru>2017-02-15 02:48:33 +0300
commitefa2682e3b513c4a33d987dc651db5913feff21a (patch)
tree46736cfd53da15a607a332afc79f8359f50bd455 /src/nvim/if_cscope.c
parent2a50ff7e2fa724fc748068ba19012239886b74dd (diff)
downloadrneovim-efa2682e3b513c4a33d987dc651db5913feff21a.tar.gz
rneovim-efa2682e3b513c4a33d987dc651db5913feff21a.tar.bz2
rneovim-efa2682e3b513c4a33d987dc651db5913feff21a.zip
*: Partial string handling refactoring
Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c
index 9d50058257..a05ac5f877 100644
--- a/src/nvim/if_cscope.c
+++ b/src/nvim/if_cscope.c
@@ -2008,8 +2008,9 @@ static int cs_reset(exarg_T *eap)
xfree(pplist);
xfree(fllist);
- if (p_csverbose)
- MSG_ATTR(_("All cscope databases reset"), hl_attr(HLF_R) | MSG_HIST);
+ if (p_csverbose) {
+ msg_attr(_("All cscope databases reset"), hl_attr(HLF_R) | MSG_HIST);
+ }
return CSCOPE_SUCCESS;
} /* cs_reset */