1
0
forked from aniani/vim

patch 8.1.1835: cannot use printf() as a method

Problem:    Cannot use printf() as a method.
Solution:   Pass the base as the second argument to printf().
This commit is contained in:
Bram Moolenaar
2019-08-10 00:13:30 +02:00
parent 22a0c0c4ec
commit fd8ca21b3f
4 changed files with 17 additions and 9 deletions

View File

@@ -6739,7 +6739,11 @@ printf({fmt}, {expr1} ...) *printf()*
< May result in:
" 99: E42 asdfasdfasdfasdfasdfasdfasdfas" ~
Often used items are:
When used as a |method| the base is passed as the second
argument: >
Compute()->printf("result: %d")
< Often used items are:
%s string
%6S string right-aligned in 6 display cells
%6s string right-aligned in 6 bytes