comparison src/testdir/test_window_cmd.vim @ 19065:ef3633932b0c v8.2.0093

patch 8.2.0093: win_splitmove() can make Vim hang Commit: https://github.com/vim/vim/commit/7b94e77132eabdf0e43abca57e2ffeb961545174 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 6 21:03:24 2020 +0100 patch 8.2.0093: win_splitmove() can make Vim hang Problem: win_splitmove() can make Vim hang. Solution: Check windows exists in the current tab page. (closes https://github.com/vim/vim/issues/5444)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Jan 2020 21:15:06 +0100
parents 068337e86133
children 2f0f308c069c
comparison
equal deleted inserted replaced
19064:76a2ab83e2c5 19065:ef3633932b0c
925 only | bd 925 only | bd
926 926
927 call assert_fails('call win_splitmove(winnr(), 123)', 'E957:') 927 call assert_fails('call win_splitmove(winnr(), 123)', 'E957:')
928 call assert_fails('call win_splitmove(123, winnr())', 'E957:') 928 call assert_fails('call win_splitmove(123, winnr())', 'E957:')
929 call assert_fails('call win_splitmove(winnr(), winnr())', 'E957:') 929 call assert_fails('call win_splitmove(winnr(), winnr())', 'E957:')
930
931 tabnew
932 call assert_fails('call win_splitmove(1, win_getid(1, 1))', 'E957:')
933 tabclose
930 endfunc 934 endfunc
931 935
932 " vim: shiftwidth=2 sts=2 expandtab 936 " vim: shiftwidth=2 sts=2 expandtab