diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2024-03-06 20:58:41 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-06 20:58:41 +0100 |
commit | 9db39b0ec90600bb41faec3a12b934b17c298b1f (patch) | |
tree | a667be2b951aafde7aef9d1f5909f0cc315d8eec /src/testdir | |
parent | 7ac1145fbebb66dfee325dc5265309877d941c4e (diff) |
patch 9.1.0154: shm=F not respected when reloading buffer with 'autoread'v9.1.0154
Problem: shm=F not respected when reloading buffer with 'autoread'
Solution: Check SHM_FILEINFO in buf_check_timestamp()
(Shougo Matsushita)
closes: #14144
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_options.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 908f0da124..fa65f5c192 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -1293,6 +1293,26 @@ func Test_shortmess_F2() call assert_fails('call test_getvalue("abc")', 'E475:') endfunc +func Test_shortmess_F3() + defer delete('X_dummy') + + set hidden + set autoread + e X_dummy + e file + + set shortmess+=F + call writefile(["foo"], 'X_dummy') + call assert_true(empty(execute('bn', ''))) + call assert_true(empty(execute('bn', ''))) + + set shortmess& + set autoread& + set hidden& + bwipe + bwipe +endfunc + func Test_local_scrolloff() set so=5 set siso=7 |