diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-31 18:41:27 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-31 18:41:27 +0200 |
commit | 5bf6c2117fcef85fcf046c098dd3eb72a0147859 (patch) | |
tree | 32804af25b55ac2859188f9bc0771a38d078862c /src/option.c | |
parent | 86032702932995db74fed265ba99ae0c823cb75d (diff) |
patch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other bufv9.1.0231
Problem: Filetype may be undetected when a SwapExists autocommand sets
filetype in another buffer.
Solution: Make filetype detection state buffer-specific. Also fix a
similar problem for 'modified' (zeertzjq).
closes: #14344
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index 8123a2a2c6..c594301a9b 100644 --- a/src/option.c +++ b/src/option.c @@ -3678,7 +3678,7 @@ did_set_modified(optset_T *args) if (!args->os_newval.boolean) save_file_ff(curbuf); // Buffer is unchanged redraw_titles(); - modified_was_set = args->os_newval.boolean; + curbuf->b_modified_was_set = args->os_newval.boolean; return NULL; } |