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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user