aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_cursor_func.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_cursor_func.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_cursor_func.vim')
-rw-r--r--src/nvim/testdir/test_cursor_func.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cursor_func.vim b/src/nvim/testdir/test_cursor_func.vim
index a2482d95c4..d96a35ef53 100644
--- a/src/nvim/testdir/test_cursor_func.vim
+++ b/src/nvim/testdir/test_cursor_func.vim
@@ -37,7 +37,7 @@ endfunc
" Very short version of what matchparen does.
function s:Highlight_Matching_Pair()
let save_cursor = getcurpos()
- call setpos('.', save_cursor)
+ eval save_cursor->setpos('.')
endfunc
func Test_curswant_with_autocommand()