From 857cd74ad3aefea854d36ce879256cc4b4b4719b Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 14 Oct 2012 19:34:55 -0400 Subject: [PATCH] don't treat bookmark cycling as random browsing refer to discussion in #439, in short, don't add jump target to jump history when using bookmark jumping feature --- crereader.lua | 2 +- unireader.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crereader.lua b/crereader.lua index 99cb4a8ba..c9a17f378 100644 --- a/crereader.lua +++ b/crereader.lua @@ -629,7 +629,7 @@ function CREReader:adjustCreReaderCommands() else bm = self:nextBookMarkedPage() end - if bm then self:goto(bm.page, nil, "xpointer") end + if bm then self:goto(bm.page, true, "xpointer") end end) self.commands:add(KEY_BACK, nil, "Back", "go backward in jump history", diff --git a/unireader.lua b/unireader.lua index a8301372d..37e56b086 100644 --- a/unireader.lua +++ b/unireader.lua @@ -2499,7 +2499,7 @@ function UniReader:addAllCommands() else bm = self:nextBookMarkedPage() end - if bm then self:goto(bm.page) end + if bm then self:goto(bm.page, true) end end) self.commands:add(KEY_B,MOD_SHIFT,"B", "show jump history",