1
0
forked from aniani/vim

patch 8.1.1953: more functions can be used as a method

Problem:    More functions can be used as a method.
Solution:   Allow more functions to be used as a method.
This commit is contained in:
Bram Moolenaar
2019-08-31 21:17:39 +02:00
parent 5d69fdb7c4
commit f9f24ce7a0
13 changed files with 106 additions and 35 deletions

View File

@@ -33,7 +33,7 @@ func TerminalEscapeCode(code, row, col, m)
" need to use byte encoding here.
let str = list2str([a:code + 0x20, a:col + 0x20, a:row + 0x20])
if has('iconv')
let bytes = iconv(str, 'utf-8', 'latin1')
let bytes = str->iconv('utf-8', 'latin1')
else
" Hopefully the numbers are not too big.
let bytes = str