New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W11発生時のファイル再読み込みでモードラインが無視される #291
Comments
たぶん未定義動作と推測。Vimはこういうの多いですからね。 マニュアルに「どっちが優先される」と書いてあった場合は、それを盾に修正する。 |
直すとしたら、fileio.c 内で |
ならば あとは |
spell.c の |
spell.c の方がさっぱり分からないので、とりあえず、こんなパッチを投げて様子を見ようかと考えています。 --- a/src/fileio.c
+++ b/src/fileio.c
@@ -7073,6 +7073,7 @@
{
/* Reload the buffer. */
buf_reload(buf, orig_mode);
+ do_modelines(0);
#ifdef FEAT_PERSISTENT_UNDO
if (buf->b_p_udf && buf->b_ffname != NULL)
{ |
修正されて 7.3.790 として取り込まれました。 結局 |
7.3.762 で以下の手順で確認しました。(os_win32.c は Vim のソース内のファイル)
この時点では、
:autocmd
よりも os_win32.c のモードラインが優先されて ts=8 となっています。別のソフトで os_win32.c を編集してから
:checktime
を実行すると以下のように表示されるので、L を選択すると、モードラインではなく
:autocmd
の方が有効になり ts=4 になってしまいます。これは仕様でしょうか。
The text was updated successfully, but these errors were encountered: