History

Reuse digest

Caveat emptor - TOCTOU.

malc committed 6 years ago

Commit 56507f61 parent fec82262 files · +5 −4Browse files

Unified · Split

2 files
  1. config.ml +5 −3
  2. todo.org +0 −1
config.ml+5−3
@@ -1522,9 +1522,11 @@ let save1 bb leavebirdseye x h dc = · 1521 unmodified lines
15221522 | View
15231523 | LinkNav _ -> ()
15241524 end;
1525− let key = try Digest.file docpath |> Digest.to_hex
1526− with _ -> E.s in
1527− { conf with autoscrollstep; key }
1525+ let key =
1526+ if emptystr conf.key
1527+ then (try Digest.file docpath |> Digest.to_hex with _ -> E.s)
1528+ else conf.key
1529+ in { conf with autoscrollstep; key }
15281530 )
15291531 state.bookmarks
15301532 (now ())
todo.org+0−1
@@ -17,4 +17,3 @@ · 16 unmodified lines
1717 just 2 threads (event loop, display/mupdf rendering) is not fast
1818 enough.
1919 * TODO wikit - https://github.com/moosotc/llpp/issues/128
20−* TODO digest caching

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t