Skip to content

Commit d3b738c

Browse files
committed
updated for version 7.4.031
Problem: ":diffoff!" resets options even when 'diff' is not set. (Charles Cooper) Solution: Only resets related options in a window where 'diff' is set.
1 parent 9f10b73 commit d3b738c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ ex_diffoff(eap)
12031203

12041204
for (wp = firstwin; wp != NULL; wp = wp->w_next)
12051205
{
1206-
if (wp == curwin || (eap->forceit && wp->w_p_diff))
1206+
if (eap->forceit ? wp->w_p_diff : wp == curwin)
12071207
{
12081208
/* Set 'diff', 'scrollbind' off and 'wrap' on. If option values
12091209
* were saved in diff_win_options() restore them. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
31,
741743
/**/
742744
30,
743745
/**/

0 commit comments

Comments
 (0)