W dniu 2016-06-27 o 15:23, Alex Riesen pisze: > 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. Could you improve the readability of the commit message, please? Perhaps something like the following: It is very confusing that the file which diff is displayed is marked as selected, but it is not in fact selected (that means the array of selected files does not include the file in question). ... This patch lacks sign-off. > --- > 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} { > -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html