patch-lib_cmdhist.lua - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
patch-lib_cmdhist.lua
---
1 $NetBSD$
2
3 Prefer cache_dir instead of data_dir.
4
5 --- lib/cmdhist.lua.orig 2018-09-22 23:42:41.000000000 +0000
6 +++ lib/cmdhist.lua
7 @@ -75,7 +75,7 @@ window.add_signal("init", function (w)
8 local h = mode.history
9 -- Load history
10 if not h.items then
11 - local f = io.open(luakit.data_dir .. "/command-history")
12 + local f = io.open(luakit.cache_dir .. "/command-history")
13 if f then
14 h.items = lousy.pickle.unpickle(f:read("*a"))[mode.name]
15 f:close()