diff src/normal.c @ 16908:df06694b761b v8.1.1455

patch 8.1.1455: popup_atcursor() not completely implemented commit https://github.com/vim/vim/commit/1762731f2039d78fc8ddd785c3d3b52e5968c0f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 2 19:53:44 2019 +0200 patch 8.1.1455: popup_atcursor() not completely implemented Problem: Popup_atcursor() not completely implemented. Solution: Add the default for the "moved" property.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Jun 2019 20:00:06 +0200
parents ce04ebdf26b8
children 5ed4965ebc7b
line wrap: on
line diff
--- 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;