patch 8.1.1455: popup_atcursor() not completely implemented
Problem: Popup_atcursor() not completely implemented.
Solution: Add the default for the "moved" property.
diff --git a/src/normal.c b/src/normal.c
index 1ff9297..834a643 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3461,13 +3461,14 @@
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;