aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-16 13:23:51 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-17 22:07:55 -0400
commit0223c81457efa3d7180ede0f2cc33cfe4338059e (patch)
tree693287c8e3a276d669a6c63de72068b38285f694 /src/nvim/normal.c
parent7482aef113054c783b407d61d800e96177b325db (diff)
downloadrneovim-0223c81457efa3d7180ede0f2cc33cfe4338059e.tar.gz
rneovim-0223c81457efa3d7180ede0f2cc33cfe4338059e.tar.bz2
rneovim-0223c81457efa3d7180ede0f2cc33cfe4338059e.zip
lint
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index c8104b411a..afddd548a3 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -3129,13 +3129,12 @@ size_t find_ident_at_pos(win_T *wp, linenr_T lnum, colnr_T startcol,
}
if (ptr[col] == NUL || (i == 0 && this_class != 2)) {
- /*
- * didn't find an identifier or string
- */
- if (find_type & FIND_STRING)
+ // didn't find an identifier or string
+ if (find_type & FIND_STRING) {
EMSG(_("E348: No string under cursor"));
- else
+ } else {
EMSG(_(e_noident));
+ }
return 0;
}
ptr += col;