Created
May 1, 2013 12:50
-
-
Save mattn/5495114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r ef341d8811b2 src/eval.c | |
--- a/src/eval.c Mon Apr 15 22:22:58 2013 +0200 | |
+++ b/src/eval.c Wed May 01 21:49:39 2013 +0900 | |
@@ -5282,17 +5282,22 @@ | |
char_u *s; | |
char_u *key = NULL; | |
- if (rettv->v_type == VAR_FUNC | |
-#ifdef FEAT_FLOAT | |
- || rettv->v_type == VAR_FLOAT | |
-#endif | |
- ) | |
+ if (rettv->v_type == VAR_FUNC) | |
{ | |
if (verbose) | |
EMSG(_("E695: Cannot index a Funcref")); | |
return FAIL; | |
} | |
+#ifdef FEAT_FLOAT | |
+ if (rettv->v_type == VAR_FLOAT) | |
+ { | |
+ if (verbose) | |
+ EMSG(_("E806: using Float as a String")); | |
+ return FAIL; | |
+ } | |
+#endif | |
+ | |
if (**arg == '.') | |
{ | |
/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment