1
0
forked from aniani/vim

patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes

Problem:    Vim9: always converting to string for ".." leads to mistakes.
Solution:   Only automatically convert simple types.
This commit is contained in:
Bram Moolenaar
2020-08-12 21:34:49 +02:00
parent fd77748df2
commit 418f1df547
10 changed files with 157 additions and 12 deletions

View File

@@ -93,7 +93,7 @@ typedef enum {
ISN_CATCH, // drop v:exception
ISN_ENDTRY, // take entry off from ec_trystack
// moreexpression operations
// more expression operations
ISN_ADDLIST,
ISN_ADDBLOB,
@@ -124,6 +124,7 @@ typedef enum {
ISN_STRINGMEMBER, // dict.member using isn_arg.string
ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0
ISN_2STRING, // convert value to string at isn_arg.number on stack
ISN_2STRING_ANY, // like ISN_2STRING but check type
ISN_NEGATENR, // apply "-" to number
ISN_CHECKNR, // check value can be used as a number