diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-10-27 09:21:52 +0800 |
|---|---|---|
| committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2025-10-27 01:52:29 +0000 |
| commit | 8928ede8af81dfd84a0c8e36dc59e34443451058 (patch) | |
| tree | bc9d3e7f5aa90325b4194529960721db4fa2cb76 /runtime | |
| parent | 1b27d8f42840e3057814e126d505b1b28b6f658f (diff) | |
vim-patch:9.1.1870: :Tutor may not work as expected (#36343)
Problem: :Tutor may not work as expected
Solution: set buftype=nowrite instead of nofile
(Phạm Bình An)
closes: vim/vim#18613
https://github.com/vim/vim/commit/9978bb77c68c2afa056b7c1ec0fa9d9648cb1960
Co-authored-by: Phạm Bình An <phambinhanctb2004@gmail.com>
(cherry picked from commit fb6fd17f26a6abfecdf373c0e5f6dae66f07e0d8)
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/autoload/tutor.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim index 9412960195..6f2dd1e602 100644 --- a/runtime/autoload/tutor.vim +++ b/runtime/autoload/tutor.vim @@ -185,7 +185,7 @@ function! tutor#TutorCmd(tutor_name) endif call tutor#SetupVim() - exe "edit ".l:to_open + exe "drop ".l:to_open call tutor#EnableInteractive(v:true) call tutor#ApplyTransform() endfunction @@ -200,7 +200,7 @@ endfunction function! tutor#EnableInteractive(enable) let enable = a:enable if enable - setlocal buftype=nofile + setlocal buftype=nowrite setlocal concealcursor+=inv setlocal conceallevel=2 lua require('nvim.tutor').apply_marks() |
