diff 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
line wrap: on
line diff
--- a/src/testdir/test_window_id.vim
+++ b/src/testdir/test_window_id.vim
@@ -92,3 +92,12 @@ func Test_win_getid()
 
   only!
 endfunc
+
+func Test_win_getid_curtab()
+  tabedit X
+  tabfirst
+  copen
+  only
+  call assert_equal(win_getid(1), win_getid(1, 1))
+  tabclose!
+endfunc