Mercurial > vim
comparison src/testdir/test_window_cmd.vim @ 17516:711db62c8aca v8.1.1756
patch 8.1.1756: autocommand that splits window messes up window layout
commit https://github.com/vim/vim/commit/1417c766f55e5959b31da488417b7d9b141404af
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 27 17:31:36 2019 +0200
patch 8.1.1756: autocommand that splits window messes up window layout
Problem: Autocommand that splits window messes up window layout.
Solution: Disallow splitting a window while closing one. In ":all" give an
error when moving a window will not work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Jul 2019 17:45:06 +0200 |
parents | cb71b5e9e5d9 |
children | a4e488a6655c |
comparison
equal
deleted
inserted
replaced
17515:ea9798fcdb36 | 17516:711db62c8aca |
---|---|
529 " This was reading invalid memory. | 529 " This was reading invalid memory. |
530 exe "norm! v\<C-W>:\<C-U>echo v:version" | 530 exe "norm! v\<C-W>:\<C-U>echo v:version" |
531 endfunc | 531 endfunc |
532 | 532 |
533 func Test_access_freed_mem() | 533 func Test_access_freed_mem() |
534 call assert_equal(&columns, winwidth(0)) | |
534 " This was accessing freed memory | 535 " This was accessing freed memory |
535 au * 0 vs xxx | 536 au * 0 vs xxx |
536 arg 0 | 537 arg 0 |
537 argadd | 538 argadd |
538 all | 539 call assert_fails("all", "E249:") |
539 all | |
540 au! | 540 au! |
541 bwipe xxx | 541 bwipe xxx |
542 call assert_equal(&columns, winwidth(0)) | |
542 endfunc | 543 endfunc |
543 | 544 |
544 func Test_visual_cleared_after_window_split() | 545 func Test_visual_cleared_after_window_split() |
545 new | only! | 546 new | only! |
546 let smd_save = &showmode | 547 let smd_save = &showmode |