From ff7742436ba82e510209fe35ce62d7cd56f6554b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 1 Jun 2020 11:51:11 +0200 Subject: [PATCH] Fixed selectors which walk pages backwards --- cmds.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds.cc b/cmds.cc index 7d0f9b6..7fad302 100644 --- a/cmds.cc +++ b/cmds.cc @@ -580,7 +580,7 @@ vector select_cmd::process(vector &pages) int f = validate_page_index(pages, ps.from); int t = validate_page_index(pages, ps.to); int step = (f <= t) ? 1 : -1; - for (int i=f; i<=t; i += step) + for (int i=f; i != t + step; i += step) selected.push_back(pages[i]); } auto processed = run_command_list(pb->commands, selected); -- 2.39.2