Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 23404:a6b6bcc004f2 v8.2.2245
patch 8.2.2245: Vim9: return value of winrestcmd() cannot be executed
Commit: https://github.com/vim/vim/commit/285b15fce164ade8b1537b884cc15aebaa60e9ef
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 29 20:25:19 2020 +0100
patch 8.2.2245: Vim9: return value of winrestcmd() cannot be executed
Problem: Vim9: return value of winrestcmd() cannot be executed.
Solution: Put colons before each range. (closes https://github.com/vim/vim/issues/7571)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Dec 2020 20:30:06 +0100 |
parents | 9b86957ddd95 |
children | 5807e3958e38 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -716,5 +716,15 @@ def Test_win_splitmove() close enddef +def Test_winrestcmd() + split + var cmd = winrestcmd() + wincmd _ + exe cmd + assert_equal(cmd, winrestcmd()) + close +enddef + + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker