aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-05 18:02:24 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-06 11:49:59 -0400
commit41dbb69a85302e9af5c8b76e0d8217ad7d197f8a (patch)
tree4c5e39b95785f2f6dca422a7ceb0ac9dc442bdff /src
parent47d52e1578aa6dd0b55d397d24fc929b95d586f2 (diff)
downloadrneovim-41dbb69a85302e9af5c8b76e0d8217ad7d197f8a.tar.gz
rneovim-41dbb69a85302e9af5c8b76e0d8217ad7d197f8a.tar.bz2
rneovim-41dbb69a85302e9af5c8b76e0d8217ad7d197f8a.zip
lint
Diffstat (limited to 'src')
-rw-r--r--src/nvim/edit.c2
-rw-r--r--src/nvim/getchar.c2
-rw-r--r--src/nvim/misc1.c4
-rw-r--r--src/nvim/normal.c2
-rw-r--r--src/nvim/ops.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 4db014af1b..95c903c90c 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7881,7 +7881,7 @@ static void ins_mousescroll(int dir)
int row = mouse_row;
int col = mouse_col;
- /* find the window at the pointer coordinates */
+ // find the window at the pointer coordinates
win_T *const wp = mouse_find_win(&row, &col);
if (wp == NULL) {
return;
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 8fb9cbf14a..e20c75cf7b 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -442,7 +442,7 @@ void flush_buffers(int flush_typeahead)
// Reset the flag that text received from a client or from feedkeys()
// was inserted in the typeahead buffer.
typebuf_was_filled = false;
- } else { /* remove mapped characters at the start only */
+ } else { // remove mapped characters at the start only
typebuf.tb_off += typebuf.tb_maplen;
typebuf.tb_len -= typebuf.tb_maplen;
}
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 3108d0316c..d2ecb9a74b 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -165,7 +165,7 @@ open_line (
*p_extra = NUL;
}
- u_clearline(); /* cannot do "U" command when adding lines */
+ u_clearline(); // cannot do "U" command when adding lines
did_si = false;
ai_col = 0;
@@ -287,7 +287,7 @@ open_line (
*/
if (last_char == '{') {
did_si = true; // do indent
- no_si = TRUE; /* don't delete it when '{' typed */
+ no_si = true; // don't delete it when '{' typed
}
/*
* Look for "if" and the like, use 'cinwords'.
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 001972103c..225fe4aa9a 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -3994,7 +3994,7 @@ static void nv_mousescroll(cmdarg_T *cap)
row = mouse_row;
col = mouse_col;
- /* find the window at the pointer coordinates */
+ // find the window at the pointer coordinates
win_T *const wp = mouse_find_win(&row, &col);
if (wp == NULL) {
return;
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 2a83b7a4fc..4fb1a1ea9d 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1473,8 +1473,8 @@ int op_delete(oparg_T *oap)
}
if (u_save_cursor() == FAIL)
return FAIL;
- if (curbuf->b_p_ai) { /* don't delete indent */
- beginline(BL_WHITE); /* cursor on first non-white */
+ if (curbuf->b_p_ai) { // don't delete indent
+ beginline(BL_WHITE); // cursor on first non-white
did_ai = true; // delete the indent when ESC hit
ai_col = curwin->w_cursor.col;
} else