aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-29 01:23:17 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-29 18:40:48 -0400
commit9d28875d50db01853944d96200579d44a9f973f6 (patch)
tree66e4f021233bc14ed70e8a94766d52cd57c25ff2 /src/nvim/edit.c
parent4564f2c54f2ab3af500cc81a3802570b57123a51 (diff)
downloadrneovim-9d28875d50db01853944d96200579d44a9f973f6.tar.gz
rneovim-9d28875d50db01853944d96200579d44a9f973f6.tar.bz2
rneovim-9d28875d50db01853944d96200579d44a9f973f6.zip
vim-patch:8.1.0874: using old style comments in new file
Problem: Using old style comments in new file. Solution: Convert to // comments in new file. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/9c46efd7dc57c1a8eae5137d05c7e67c4f82c3d7
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 20f31a478d..49bd170bcd 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7269,7 +7269,6 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
char_u *p;
char_u *line;
int icase;
- int i;
if (keytyped == NUL) {
// Can happen with CTRL-Y and CTRL-E on a short line.
@@ -7354,8 +7353,9 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
&& p[curwin->w_cursor.col - 1] == ':'
&& p[curwin->w_cursor.col - 2] == ':') {
p[curwin->w_cursor.col - 1] = ' ';
- i = (cin_iscase(p, FALSE) || cin_isscopedecl(p)
- || cin_islabel());
+ const bool i = cin_iscase(p, false)
+ || cin_isscopedecl(p)
+ || cin_islabel();
p = get_cursor_line_ptr();
p[curwin->w_cursor.col - 1] = ':';
if (i) {