aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/misc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/client/misc.lua')
-rw-r--r--builtin/client/misc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/client/misc.lua b/builtin/client/misc.lua
new file mode 100644
index 000000000..80e0f2904
--- /dev/null
+++ b/builtin/client/misc.lua
@@ -0,0 +1,7 @@
+function core.setting_get_pos(name)
+ local value = core.settings:get(name)
+ if not value then
+ return nil
+ end
+ return core.string_to_pos(value)
+end