From: Alex Riesen Date: Mon, 27 Jun 2016 13:23:08 GMT Subject: [PATCH 2/2] Ensure the file in the diff pane is always in the list of selected files Message-ID: <20160627132308.GD4194@pflmari> In-Reply-To: <20160627132137.GC4194@pflmari> It is very confusing that the file, diff of which is displayed and which is marked as selected in the file list, is not, in fact, selected. I.e. the array of selected files does not contain an entry for it. Fixing this also improves the use of $FILENAMES in custom defined tools: one does not have to click the file in the list to make it selected. --- lib/diff.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/diff.tcl b/lib/diff.tcl index 0d56986..30bdd69 100644 --- a/lib/diff.tcl +++ b/lib/diff.tcl @@ -127,6 +127,9 @@ proc show_diff {path w {lno {}} {scroll_pos {}} {callback {}}} { } else { start_show_diff $cont_info } + + global current_diff_path selected_paths + set selected_paths($current_diff_path) 1 } proc show_unmerged_diff {cont_info} { -- 2.9.0.45.g28c608e.dirty To: Cc: Bcc: Subject: Reply-To: Alex Riesen --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus