aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-07 01:08:22 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-08-12 22:35:22 +0100
commitf03dd22f0d37af88f40a27c694c3265026178e80 (patch)
tree25d2f4f89d47c68ce2e9f5291550d351ab9a85f4 /runtime
parent5811390f82c51a4bb15b2e8901e6b5a1d453480a (diff)
downloadrneovim-f03dd22f0d37af88f40a27c694c3265026178e80.tar.gz
rneovim-f03dd22f0d37af88f40a27c694c3265026178e80.tar.bz2
rneovim-f03dd22f0d37af88f40a27c694c3265026178e80.zip
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(). https://github.com/vim/vim/commit/fd8ca21b3ff207e44891aef922935d4adcd140cf
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 321da32bf0..e180836917 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -6653,7 +6653,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