From 1b4676956843ba8cbd6bae4aa0b9302fe910b80c Mon Sep 17 00:00:00 2001 From: Fabrice Laporte Date: Tue, 24 Mar 2020 19:52:53 +0100 Subject: [PATCH] fix --select-ignore option --- percol/command.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/percol/command.py b/percol/command.py index 3436dd4..1a16464 100644 --- a/percol/command.py +++ b/percol/command.py @@ -34,11 +34,12 @@ def delta_next(self, step=1): def delta_prev(self): return self.delta_next(step=-1) + def select_successor(self): - self.model.select_index(self.model.index + 1) + self.model.select_index(self.model.index + self.delta_next()) def select_predecessor(self): - self.model.select_index(self.model.index - 1) + self.model.select_index(self.model.index + self.delta_prev()) def select_next(self): if self.view.results_top_down: @@ -216,6 +217,7 @@ def kill_end_of_line(self): self.model.query = self.model.query[:self.model.caret] killed = None # default + def yank(self): if self.model.killed: self.model.insert_string(self.model.killed)