aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-07 14:17:53 +0200
committerDaniel Hahler <git@thequod.de>2019-08-07 14:21:23 +0200
commit564838159e172911e1dc98512ede11802f7161d7 (patch)
treea08e62951ab7df09d4e5ca48582feb6e6b1deb42 /src
parente269c1028bda28238d8348ab42286ce02c1a56f2 (diff)
downloadrneovim-564838159e172911e1dc98512ede11802f7161d7.tar.gz
rneovim-564838159e172911e1dc98512ede11802f7161d7.tar.bz2
rneovim-564838159e172911e1dc98512ede11802f7161d7.zip
lint
Diffstat (limited to 'src')
-rw-r--r--src/nvim/change.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index 4e250e4fa3..2363578139 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -734,8 +734,8 @@ int del_bytes(colnr_T count, bool fixpos_arg, bool use_delcombine)
return FAIL;
}
- /* If 'delcombine' is set and deleting (less than) one character, only
- * delete the last combining character. */
+ // If 'delcombine' is set and deleting (less than) one character, only
+ // delete the last combining character.
if (p_deco && use_delcombine && enc_utf8
&& utfc_ptr2len(oldp + col) >= count) {
int cc[MAX_MCO];
@@ -743,7 +743,7 @@ int del_bytes(colnr_T count, bool fixpos_arg, bool use_delcombine)
(void)utfc_ptr2char(oldp + col, cc);
if (cc[0] != NUL) {
- /* Find the last composing char, there can be several. */
+ // Find the last composing char, there can be several.
n = col;
do {
col = n;
@@ -1731,7 +1731,7 @@ theend:
xfree(next_line);
xfree(allocated);
return retval;
-}
+} // NOLINT(readability/fn_size)
/// Delete from cursor to end of line.
/// Caller must have prepared for undo.