aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/vim_diff.txt
diff options
context:
space:
mode:
authorNikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>2017-02-11 21:47:02 +0300
committerJustin M. Keyes <justinkz@gmail.com>2017-02-11 19:47:02 +0100
commitabdbfd26bc7f91cb6fda8feb758ffd020fb58754 (patch)
tree866d2cc4db059f7392d30715483ca8c0eb52be6b /runtime/doc/vim_diff.txt
parentb1cf50c6846790fc1846a36ced3ba19134afef64 (diff)
downloadrneovim-abdbfd26bc7f91cb6fda8feb758ffd020fb58754.tar.gz
rneovim-abdbfd26bc7f91cb6fda8feb758ffd020fb58754.tar.bz2
rneovim-abdbfd26bc7f91cb6fda8feb758ffd020fb58754.zip
eval: Add id() function and make printf("%p") return something useful (#6095)
Diffstat (limited to 'runtime/doc/vim_diff.txt')
-rw-r--r--runtime/doc/vim_diff.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index de93aab399..eeb5e85036 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -232,6 +232,12 @@ Additional differences:
itself.
- ShaDa file keeps search direction (|v:searchforward|), viminfo does not.
+|printf()| returns something meaningful when used with `%p` argument: in Vim
+it used to return useless address of the string (strings are copied to the
+newly allocated memory all over the place) and fail on types which cannot be
+coerced to strings. See |id()| for more details, currently it uses
+`printf("%p", {expr})` internally.
+
==============================================================================
5. Missing legacy features *nvim-features-missing*
*if_lua* *if_perl* *if_mzscheme* *if_tcl*