0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1455: popup_atcursor() not completely implemented

Problem:    Popup_atcursor() not completely implemented.
Solution:   Add the default for the "moved" property.
This commit is contained in:
Bram Moolenaar
2019-06-02 19:53:44 +02:00
parent 6116b6abb1
commit 1762731f20
5 changed files with 75 additions and 47 deletions

View File

@@ -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;