diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-14 11:35:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-14 11:35:25 +0800 |
commit | 5220891571a799fd630cbcbe836d1f9e3d2dc1fa (patch) | |
tree | be2ab5557a3b1aa02f0ad7b5c52d3441ed225a02 /runtime | |
parent | 5d6bef0f6e5e6fc2daa12a0d7e1f5d63df59926e (diff) | |
download | rneovim-5220891571a799fd630cbcbe836d1f9e3d2dc1fa.tar.gz rneovim-5220891571a799fd630cbcbe836d1f9e3d2dc1fa.tar.bz2 rneovim-5220891571a799fd630cbcbe836d1f9e3d2dc1fa.zip |
vim-patch:8.2.4343: when reloading not all properties are detected
Problem: When reloading not all properties are detected.
Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes vim/vim#9579)
https://github.com/vim/vim/commit/8196e94a8b72ed8618605cb66615571313097d78
Cherry-pick some test changes from patch 8.1.1826.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/editing.txt | 5 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt index 3d0287b0cd..8ddc661c0e 100644 --- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1450,6 +1450,11 @@ If you don't get warned often enough you can use the following command. if it exists now. Once a file has been checked the timestamp is reset, you will not be warned again. + Syntax highlighting, marks, diff status, + 'fileencoding', 'fileformat' and 'binary' options + are not changed. See |v:fcs_choice| to reload these + too (for example, if a code formatting tools has + changed the file). :[N]checkt[ime] {filename} :[N]checkt[ime] [N] diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index fc788fba59..fc422f13e5 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1882,6 +1882,11 @@ v:fcs_choice What should happen after a |FileChangedShell| event was do with the affected buffer: reload Reload the buffer (does not work if the file was deleted). + edit Reload the buffer and detect the + values for options such as + 'fileformat', 'fileencoding', 'binary' + (does not work if the file was + deleted). ask Ask the user what to do, as if there was no autocommand. Except that when only the timestamp changed nothing |