fix: don't update diff on exit
This commit is contained in:
parent
b09aa98f70
commit
8fc80b6360
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ fn mouse_click_button5(_: *Self) error{Exit}!bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn diff_update(self: *Self) !void {
|
fn diff_update(self: *Self) !void {
|
||||||
if (self.lines > root.max_diff_lines) {
|
if (self.lines == 0 or self.lines > root.max_diff_lines) {
|
||||||
self.diff_symbols_clear();
|
self.diff_symbols_clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue