Mercurial > vim
comparison src/testdir/test_tabline.vim @ 29841:b37b74ea8dee v9.0.0259
patch 9.0.0259: crash with mouse click when not initialized
Commit: https://github.com/vim/vim/commit/80525751c5ce9ed82c41d83faf9ef38667bf61b1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 19:27:45 2022 +0100
patch 9.0.0259: crash with mouse click when not initialized
Problem: Crash with mouse click when not initialized.
Solution: Check TabPageIdxs[] is not NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Aug 2022 20:30:03 +0200 |
parents | fa675efa1e75 |
children | c8ebe35b2475 |
comparison
equal
deleted
inserted
replaced
29840:b15334beeaa4 | 29841:b37b74ea8dee |
---|---|
145 redrawtabline | 145 redrawtabline |
146 | 146 |
147 set showtabline& tabline& | 147 set showtabline& tabline& |
148 endfunc | 148 endfunc |
149 | 149 |
150 func Test_mouse_click_in_tab() | |
151 " This used to crash because TabPageIdxs[] was not initialized | |
152 let lines =<< trim END | |
153 tabnew | |
154 set mouse=a | |
155 exe "norm \<LeftMouse>" | |
156 END | |
157 call writefile(lines, 'Xclickscript') | |
158 call RunVim([], [], "-e -s -S Xclickscript -c qa") | |
159 | |
160 call delete('Xclickscript') | |
161 endfunc | |
162 | |
163 | |
150 " vim: shiftwidth=2 sts=2 expandtab | 164 " vim: shiftwidth=2 sts=2 expandtab |