From 0e2ff077af350b62c7dc3448a50956c40a5c5847 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 May 2020 09:03:44 +0530 Subject: [PATCH] Fix #2682 --- kittens/diff/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kittens/diff/main.py b/kittens/diff/main.py index f7aa7d1b1..38869f522 100644 --- a/kittens/diff/main.py +++ b/kittens/diff/main.py @@ -113,13 +113,13 @@ class DiffHandler(Handler): return self.scroll_lines(amt) if func == 'change_context': new_ctx = self.current_context_count - to = int(args[0]) + to = args[0] if to == 'all': new_ctx = 100000 elif to == 'default': new_ctx = self.original_context_count else: - new_ctx += to + new_ctx += int(to) return self.change_context_count(new_ctx) if func == 'start_search': self.start_search(bool(args[0]), bool(args[1]))