• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョン73fb9c6efc6db05075dbdb806817e45fffb32e55 (tree)
日時2022-07-05 02:15:03
作者Bram Moolenaar <Bram@vim....>
コミッターBram Moolenaar

ログメッセージ

patch 9.0.0038: 'listchars' test fails

Commit: https://github.com/vim/vim/commit/5ed26faace574f6b36744f9e17075d7e806aa877
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 4 18:05:51 2022 +0100

patch 9.0.0038: 'listchars' test fails
Problem: 'listchars' test fails.
Solution: Use window-local value after setting the global value

変更サマリ

差分

diff -r f85fcaede57f -r 73fb9c6efc6d src/optionstr.c
--- a/src/optionstr.c Mon Jul 04 19:00:04 2022 +0200
+++ b/src/optionstr.c Mon Jul 04 19:15:03 2022 +0200
@@ -1313,15 +1313,16 @@
13131313 tabpage_T *tp;
13141314 win_T *wp;
13151315
1316- // The current window is set to use the global 'listchars' value.
1317- // So clear the window-local value.
1316+ // If the current window is set to use the global 'listchars'
1317+ // value, clear the window-local value.
13181318 if (!(opt_flags & OPT_GLOBAL))
13191319 clear_string_option(&curwin->w_p_lcs);
13201320 FOR_ALL_TAB_WINDOWS(tp, wp)
1321+ // If the current window has a local value need to apply it
1322+ // again, it was changed when setting the global value.
13211323 // If no error was returned above, we don't expect an error
13221324 // here, so ignore the return value.
1323- if (*wp->w_p_lcs == NUL)
1324- (void)set_chars_option(wp, &wp->w_p_lcs);
1325+ (void)set_chars_option(wp, &wp->w_p_lcs);
13251326
13261327 redraw_all_later(NOT_VALID);
13271328 }
@@ -1339,15 +1340,16 @@
13391340 tabpage_T *tp;
13401341 win_T *wp;
13411342
1342- // The current window is set to use the global 'fillchars' value.
1343- // So clear the window-local value.
1343+ // If the current window is set to use the global 'fillchars'
1344+ // value clear the window-local value.
13441345 if (!(opt_flags & OPT_GLOBAL))
13451346 clear_string_option(&curwin->w_p_fcs);
13461347 FOR_ALL_TAB_WINDOWS(tp, wp)
1348+ // If the current window has a local value need to apply it
1349+ // again, it was changed when setting the global value.
13471350 // If no error was returned above, we don't expect an error
13481351 // here, so ignore the return value.
1349- if (*wp->w_p_fcs == NUL)
1350- (void)set_chars_option(wp, &wp->w_p_fcs);
1352+ (void)set_chars_option(wp, &wp->w_p_fcs);
13511353
13521354 redraw_all_later(NOT_VALID);
13531355 }
diff -r f85fcaede57f -r 73fb9c6efc6d src/version.c
--- a/src/version.c Mon Jul 04 19:00:04 2022 +0200
+++ b/src/version.c Mon Jul 04 19:15:03 2022 +0200
@@ -736,6 +736,8 @@
736736 static int included_patches[] =
737737 { /* Add new patch number below this line */
738738 /**/
739+ 38,
740+/**/
739741 37,
740742 /**/
741743 36,
旧リポジトリブラウザで表示