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