Mercurial > vim
view src/testdir/test_lineending.vim @ 34647:6b2efa2b2386 v9.1.0208
patch 9.1.0208: winfixbuf does not allow to re-edit current buffer
Commit: https://github.com/vim/vim/commit/65e580bd5610465bb6b9c1a546b7a8d00c76aa47
Author: Colin Kennedy <colinvfx@gmail.com>
Date: Tue Mar 26 18:29:30 2024 +0100
patch 9.1.0208: winfixbuf does not allow to re-edit current buffer
Problem: winfixbuf does not allow to re-edit current buffer
(Tim Pope, after v9.1.0147)
Solution: Explicitly allow :e even when 'winfixbuf' is set,
since it just re-loads the current buffer
(Colin Kennedy)
fixes: #14237
closes: #14286
Signed-off-by: Colin Kennedy <colinvfx@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Mar 2024 18:45:03 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for saving/loading a file with some lines ending in " CTRL-M, some not func Test_lineending() let l = ["this line ends in a\<CR>", \ "this one doesn't", \ "this one does\<CR>", \ "and the last one doesn't"] set ta tx enew! call append(0, l) $delete write Xfile1 bwipe Xfile1 edit Xfile1 let t = getline(1, '$') call assert_equal(l, t) new | only call delete('Xfile1') endfunc " vim: shiftwidth=2 sts=2 expandtab