aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-08 06:52:14 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-03-08 06:53:37 +0800
commitd741e5d1629948876cf8bdcacf6c8bc8a4924f94 (patch)
treef07971f78cf303d71e0d92cf72fb06236f7a2fe6 /test
parent5f3579e6ea12659d48e92b2126f83777908c28fc (diff)
downloadrneovim-d741e5d1629948876cf8bdcacf6c8bc8a4924f94.tar.gz
rneovim-d741e5d1629948876cf8bdcacf6c8bc8a4924f94.tar.bz2
rneovim-d741e5d1629948876cf8bdcacf6c8bc8a4924f94.zip
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 https://github.com/vim/vim/commit/9db39b0ec90600bb41faec3a12b934b17c298b1f Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_options.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim
index e772a7bb55..97af202128 100644
--- a/test/old/testdir/test_options.vim
+++ b/test/old/testdir/test_options.vim
@@ -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