Skip to content

Commit e7297a1

Browse files
committed
gitk: Fix bug where editing an existing view would cause an infinite loop
This fixes a bug where changing the commit range or file list for an existing view and then clicking OK would cause gitk to go into an infinite loop. The problem was that newviewok was invoking reloadcommits via "run reloadcommits", but reloadcommits wasn't explicitly returning 0, and whatever it was returning was causing dorunq to run it over and over again. This fixes it by making reloadcommits return 0. Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 46308ea commit e7297a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ proc reloadcommits {} {
263263
catch {unset targetid}
264264
setcanvscroll
265265
getcommits
266+
return 0
266267
}
267268

268269
# This makes a string representation of a positive integer which

0 commit comments

Comments
 (0)