From ccd95b80fa764af327d9f760f078b2fd6d658f6e Mon Sep 17 00:00:00 2001 From: Zijie He Date: Thu, 14 Apr 2016 12:50:02 -0700 Subject: [PATCH] Prefer sdr folder to history folder --- frontend/docsettings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/docsettings.lua b/frontend/docsettings.lua index 9cba169aa..c6ea5fe58 100644 --- a/frontend/docsettings.lua +++ b/frontend/docsettings.lua @@ -56,9 +56,9 @@ function DocSettings:open(docfile) sidecar_file = sidecar_path, data = {} } - local ok, stored = pcall(dofile, new.history_file or "") + local ok, stored = pcall(dofile, new.sidecar_file or "") if not ok then - ok, stored = pcall(dofile, new.sidecar_file or "") + ok, stored = pcall(dofile, new.history_file or "") if not ok then -- try legacy conf path, for backward compatibility. this also -- takes care of reader legacy setting