aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_functions.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-10-31 18:10:46 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2021-11-26 18:52:58 +0000
commit2ee0bc09d9becd71ca864b4d754b63b152d1ce5b (patch)
tree0cef8da1a6dba83e4d2272cec4ba162fcdc8b770 /src/nvim/testdir/test_functions.vim
parentaad25ae4fc3fdfdf2c23009406cf3f806a2c272d (diff)
downloadrneovim-2ee0bc09d9becd71ca864b4d754b63b152d1ce5b.tar.gz
rneovim-2ee0bc09d9becd71ca864b4d754b63b152d1ce5b.tar.bz2
rneovim-2ee0bc09d9becd71ca864b4d754b63b152d1ce5b.zip
feat(eval/method): partially port v8.1.1996
Problem: More functions can be used as methods. Solution: Make various functions usable as a method. https://github.com/vim/vim/commit/aad222c9c9a1e4fe6ae5a1fe95bb084619be0e65 Partial port as this does not include eval.txt change for listener_add. Cherry-pick eval.txt changes for: - bufadd from v8.1.1626: https://github.com/vim/vim/commit/5ca1ac373ae62b37152cb6f85916b402eda520a5 - setloclist and setqflist headers from: https://github.com/vim/vim/commit/b0d45e7f5354375edd02afafde3bd37dac1515ff Correct eval.txt typo for settabwinvar method call (matches latest Vim).
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
-rw-r--r--src/nvim/testdir/test_functions.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim
index 2fcdd94188..ef33cd5dd8 100644
--- a/src/nvim/testdir/test_functions.vim
+++ b/src/nvim/testdir/test_functions.vim
@@ -1219,7 +1219,7 @@ func Test_shellescape()
let save_shell = &shell
set shell=bash
call assert_equal("'text'", shellescape('text'))
- call assert_equal("'te\"xt'", shellescape('te"xt'))
+ call assert_equal("'te\"xt'", 'te"xt'->shellescape())
call assert_equal("'te'\\''xt'", shellescape("te'xt"))
call assert_equal("'te%xt'", shellescape("te%xt"))