Fossil SCM

Fix on Check-in pages to preserve the current "diffType" setting (side-by-side or unified) when toggling the show/ignore whitespace option.

graham 2020-05-28 12:01 ui-local-diff
Commit e6ab947e1e8f51a969aa5ff7bb8a7bbde6baf9927c1accda6622fef38311e65b
1 file changed +2 -2
+2 -2
--- src/info.c
+++ src/info.c
@@ -891,14 +891,14 @@
891891
@ %z(chref("button","%R/%s/%T?diff=2%s",zPage,zName,zW))\
892892
@ Side-by-Side&nbsp;Diffs</a>
893893
}
894894
if( diffType!=0 ){
895895
if( *zW ){
896
- @ %z(chref("button","%R/%s/%T",zPage,zName))
896
+ @ %z(chref("button","%R/%s/%T?diff=%d",zPage,zName,diffType))
897897
@ Show&nbsp;Whitespace&nbsp;Changes</a>
898898
}else{
899
- @ %z(chref("button","%R/%s/%T?w",zPage,zName))
899
+ @ %z(chref("button","%R/%s/%T?diff=%d&w",zPage,zName,diffType))
900900
@ Ignore&nbsp;Whitespace</a>
901901
}
902902
}
903903
if( zParent ){
904904
@ %z(chref("button","%R/vpatch?from=%!S&to=%!S",zParent,zUuid))
905905
--- src/info.c
+++ src/info.c
@@ -891,14 +891,14 @@
891 @ %z(chref("button","%R/%s/%T?diff=2%s",zPage,zName,zW))\
892 @ Side-by-Side&nbsp;Diffs</a>
893 }
894 if( diffType!=0 ){
895 if( *zW ){
896 @ %z(chref("button","%R/%s/%T",zPage,zName))
897 @ Show&nbsp;Whitespace&nbsp;Changes</a>
898 }else{
899 @ %z(chref("button","%R/%s/%T?w",zPage,zName))
900 @ Ignore&nbsp;Whitespace</a>
901 }
902 }
903 if( zParent ){
904 @ %z(chref("button","%R/vpatch?from=%!S&to=%!S",zParent,zUuid))
905
--- src/info.c
+++ src/info.c
@@ -891,14 +891,14 @@
891 @ %z(chref("button","%R/%s/%T?diff=2%s",zPage,zName,zW))\
892 @ Side-by-Side&nbsp;Diffs</a>
893 }
894 if( diffType!=0 ){
895 if( *zW ){
896 @ %z(chref("button","%R/%s/%T?diff=%d",zPage,zName,diffType))
897 @ Show&nbsp;Whitespace&nbsp;Changes</a>
898 }else{
899 @ %z(chref("button","%R/%s/%T?diff=%d&w",zPage,zName,diffType))
900 @ Ignore&nbsp;Whitespace</a>
901 }
902 }
903 if( zParent ){
904 @ %z(chref("button","%R/vpatch?from=%!S&to=%!S",zParent,zUuid))
905

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button