vim-patch:9.1.0154: shm=F not respected when reloading buffer with 'autoread'

Problem:  shm=F not respected when reloading buffer with 'autoread'
Solution: Check SHM_FILEINFO in buf_check_timestamp()
          (Shougo Matsushita)

closes: vim/vim#14144

9db39b0ec9

Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
This commit is contained in:
zeertzjq
2024-03-08 06:52:14 +08:00
parent 5f3579e6ea
commit d741e5d162
5 changed files with 27 additions and 4 deletions

View File

@@ -1283,6 +1283,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