From 823d841bc5c38a83c3cc0991c1f3ff8099d83fb5 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 7 Aug 2018 23:46:05 +0200 Subject: [PATCH] Fixed 'history delete #' not quite working. --- clink/app/src/history/history_db.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clink/app/src/history/history_db.cpp b/clink/app/src/history/history_db.cpp index 43de93254..2bca4d0a3 100644 --- a/clink/app/src/history/history_db.cpp +++ b/clink/app/src/history/history_db.cpp @@ -466,8 +466,13 @@ history_db::line_id read_line_iter::next(str_iter& out) return 0; do + { if (line_id_impl ret = m_line_iter.next(out)) + { + ret.bank_index = m_bank_index - 1; return ret.outer; + } + } while (next_bank()); return 0;