diff src/testdir/test_vim9_cmd.vim @ 23477:95db03521b01 v8.2.2281

patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar Commit: https://github.com/vim/vim/commit/a11919fa44fb43e947ef7871f31096a79429ec8a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 2 19:44:56 2021 +0100 patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar Problem: Vim9: compiled "wincmd" cannot be followed by bar. Solution: Check for bar after "wincmd". (closes https://github.com/vim/vim/issues/7599)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Jan 2021 20:00:03 +0100
parents 5807e3958e38
children 872239543313
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -868,4 +868,14 @@ def Test_insert_complete()
   bwipe!
 enddef
 
+def Test_wincmd()
+  split
+  var id1 = win_getid()
+  if true
+    try | wincmd w | catch | endtry
+  endif
+  assert_notequal(id1, win_getid())
+  close
+enddef
+
 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker