This commit is contained in:
Kovid Goyal 2020-05-23 09:03:44 +05:30
parent 012cf70321
commit 0e2ff077af
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -113,13 +113,13 @@ class DiffHandler(Handler):
return self.scroll_lines(amt) return self.scroll_lines(amt)
if func == 'change_context': if func == 'change_context':
new_ctx = self.current_context_count new_ctx = self.current_context_count
to = int(args[0]) to = args[0]
if to == 'all': if to == 'all':
new_ctx = 100000 new_ctx = 100000
elif to == 'default': elif to == 'default':
new_ctx = self.original_context_count new_ctx = self.original_context_count
else: else:
new_ctx += to new_ctx += int(to)
return self.change_context_count(new_ctx) return self.change_context_count(new_ctx)
if func == 'start_search': if func == 'start_search':
self.start_search(bool(args[0]), bool(args[1])) self.start_search(bool(args[0]), bool(args[1]))