{"thread":{"id":"54567","subject":"[PATCH] gitk: replace tabs with spaces (again)","startedAt":"2020-11-04T01:09:37Z","lastAt":"2020-11-04T01:09:37Z","messageCount":1,"participants":["Denton Liu"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"409058","messageId":"4c58637d96fe22747cd301e0f2e34d8c8b8f1f93.1604452145.git.liu.denton@gmail.com","threadId":"54567","inReplyTo":null,"subject":"[PATCH] gitk: replace tabs with spaces (again)","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2020-11-04T01:09:27Z","receivedAt":"2020-11-04T01:09:37Z","isPatch":true,"sender":{"key":"liu.denton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/9620836?v=4"},"body":"In e244588eb6 (gitk: replace tabs with spaces, 2020-09-10), tabs were\nreplaced with spaces so that indents consistently use spaces. However,\nin 6cd80496e9 (gitk: Resize panes correctly when reducing window size,\n2020-10-03), some tabs were erroneously reintroduced.\n\nConvert these tabs back into spaces.\n\nThis was done mechanically by running:\n\n\t$ expand -i gitk >gitk.new\n\t$ mv gitk.new gitk\n\t$ chmod +x gitk\n\nThis patch should be empty with `--ignore-all-space`.\n\nSigned-off-by: Denton Liu <liu.denton@gmail.com>\n---\n gitk | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex 23d9dd1fe0..c31a8b4e2f 100755\n--- a/gitk\n+++ b/gitk\n@@ -2955,9 +2955,9 @@ proc savestuff {w} {\n proc resizeclistpanes {win w} {\n     global oldwidth oldsash use_ttk\n     if {[info exists oldwidth($win)]} {\n-\tif {[info exists oldsash($win)]} {\n-\t    set s0 [lindex $oldsash($win) 0]\n-\t    set s1 [lindex $oldsash($win) 1]\n+        if {[info exists oldsash($win)]} {\n+            set s0 [lindex $oldsash($win) 0]\n+            set s1 [lindex $oldsash($win) 1]\n         } elseif {$use_ttk} {\n             set s0 [$win sashpos 0]\n             set s1 [$win sashpos 1]\n@@ -2992,7 +2992,7 @@ proc resizeclistpanes {win w} {\n             $win sash place 0 $sash0 [lindex $s0 1]\n             $win sash place 1 $sash1 [lindex $s1 1]\n         }\n-\tset oldsash($win) [list $sash0 $sash1]\n+        set oldsash($win) [list $sash0 $sash1]\n     }\n     set oldwidth($win) $w\n }\n@@ -3000,8 +3000,8 @@ proc resizeclistpanes {win w} {\n proc resizecdetpanes {win w} {\n     global oldwidth oldsash use_ttk\n     if {[info exists oldwidth($win)]} {\n-\tif {[info exists oldsash($win)]} {\n-\t    set s0 $oldsash($win)\n+        if {[info exists oldsash($win)]} {\n+            set s0 $oldsash($win)\n         } elseif {$use_ttk} {\n             set s0 [$win sashpos 0]\n         } else {\n@@ -3024,7 +3024,7 @@ proc resizecdetpanes {win w} {\n         } else {\n             $win sash place 0 $sash0 [lindex $s0 1]\n         }\n-\tset oldsash($win) $sash0\n+        set oldsash($win) $sash0\n     }\n     set oldwidth($win) $w\n }\n-- \n2.29.2.286.g8a58376a31\n\n"}]}