comparison src/testdir/test_window_id.vim @ 10377:dd397210a2d3 v8.0.0083

commit https://github.com/vim/vim/commit/8e639052638a9bb8c7dd6e3e10776b1218cec1a3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 13 14:31:40 2016 +0100 patch 8.0.0083 Problem: Using freed memory with win_getid(). (Domenique Pelle) Solution: For the current tab use curwin.
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Nov 2016 14:45:03 +0100
parents 6c4d610fce0a
children d33220d3bc27
comparison
equal deleted inserted replaced
10376:ba844c78f2af 10377:dd397210a2d3
90 split 90 split
91 call assert_equal(sort([id5, win_getid()]), sort(win_findbuf(bufnr5))) 91 call assert_equal(sort([id5, win_getid()]), sort(win_findbuf(bufnr5)))
92 92
93 only! 93 only!
94 endfunc 94 endfunc
95
96 func Test_win_getid_curtab()
97 tabedit X
98 tabfirst
99 copen
100 only
101 call assert_equal(win_getid(1), win_getid(1, 1))
102 tabclose!
103 endfunc