Mercurial > vim
comparison src/testdir/test_mksession.vim @ 23851:a2f13e56b0e7 v8.2.2467
patch 8.2.2467: script generated by :mkview changes alternate file
Commit: https://github.com/vim/vim/commit/139348f3e8370826a1ceb10c73f7c7bb586f8125
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 5 21:55:53 2021 +0100
patch 8.2.2467: script generated by :mkview changes alternate file
Problem: Script generated by :mkview changes alternate file.
Solution: Only write :balt in the session file. (Harish Rajagopal,
closes #7779)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 05 Feb 2021 22:00:05 +0100 |
parents | 84089558c5df |
children | 3b5d499c2bb5 |
comparison
equal
deleted
inserted
replaced
23850:e3e337ea300b | 23851:a2f13e56b0e7 |
---|---|
528 call delete('Xtestview') | 528 call delete('Xtestview') |
529 call delete('Xtestfile') | 529 call delete('Xtestfile') |
530 %bwipe | 530 %bwipe |
531 endfunc | 531 endfunc |
532 | 532 |
533 func Test_mkview_no_balt() | |
534 edit Xtestfile1 | |
535 edit Xtestfile2 | |
536 | |
537 mkview! Xtestview | |
538 bdelete Xtestfile1 | |
539 | |
540 source Xtestview | |
541 call assert_equal(0, buflisted('Xtestfile1')) | |
542 | |
543 call delete('Xtestview') | |
544 %bwipe | |
545 endfunc | |
546 | |
533 " Test :mkview with a file argument. | 547 " Test :mkview with a file argument. |
534 func Test_mkview_file() | 548 func Test_mkview_file() |
535 " Create a view with line number and a fold. | 549 " Create a view with line number and a fold. |
536 help :mkview | 550 help :mkview |
537 set number | 551 set number |