aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-16 20:55:59 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-16 20:55:59 -0400
commita0ada7dac496de46aff416505d536c78fea80524 (patch)
tree1769754d36530429841f6d1010a1617b8977794e
parent0b60372792f88cc6e87d0b985834251662ff5940 (diff)
downloadrneovim-a0ada7dac496de46aff416505d536c78fea80524.tar.gz
rneovim-a0ada7dac496de46aff416505d536c78fea80524.tar.bz2
rneovim-a0ada7dac496de46aff416505d536c78fea80524.zip
lint
-rw-r--r--src/nvim/ex_docmd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 7c0e2afb0b..e4ab690bb9 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -3664,18 +3664,18 @@ static linenr_T get_address(exarg_T *eap,
*/
if (lnum != MAXLNUM)
curwin->w_cursor.lnum = lnum;
- /*
- * Start a forward search at the end of the line (unless
- * before the first line).
- * Start a backward search at the start of the line.
- * This makes sure we never match in the current
- * line, and can match anywhere in the
- * next/previous line.
- */
- if (c == '/' && curwin->w_cursor.lnum > 0)
+
+ // Start a forward search at the end of the line (unless
+ // before the first line).
+ // Start a backward search at the start of the line.
+ // This makes sure we never match in the current
+ // line, and can match anywhere in the
+ // next/previous line.
+ if (c == '/' && curwin->w_cursor.lnum > 0) {
curwin->w_cursor.col = MAXCOL;
- else
+ } else {
curwin->w_cursor.col = 0;
+ }
searchcmdlen = 0;
if (!do_search(NULL, c, cmd, 1L,
SEARCH_HIS | SEARCH_MSG, NULL)) {