diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-02 19:53:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-02 19:53:44 +0200 |
commit | 1762731f2039d78fc8ddd785c3d3b52e5968c0f1 (patch) | |
tree | 53ecc305a1703909d91fa5adab3ab7623308d16e /src/normal.c | |
parent | 6116b6abb1a14b6b7aa9776c390f1a5a6bf1b209 (diff) | |
download | vim-git-1762731f2039d78fc8ddd785c3d3b52e5968c0f1.tar.gz |
patch 8.1.1455: popup_atcursor() not completely implementedv8.1.1455
Problem: Popup_atcursor() not completely implemented.
Solution: Add the default for the "moved" property.
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/normal.c b/src/normal.c index 1ff92973f..834a6436d 100644 --- a/src/normal.c +++ b/src/normal.c @@ -3461,13 +3461,14 @@ find_ident_at_pos( if (ptr[col] == NUL || (i == 0 && (has_mbyte ? this_class != 2 : !vim_iswordc(ptr[col])))) { - /* - * didn't find an identifier or string - */ - if (find_type & FIND_STRING) - emsg(_("E348: No string under cursor")); - else - emsg(_(e_noident)); + // didn't find an identifier or string + if ((find_type & FIND_NOERROR) == 0) + { + if (find_type & FIND_STRING) + emsg(_("E348: No string under cursor")); + else + emsg(_(e_noident)); + } return 0; } ptr += col; |