From 15129b49a6701f5076f4e3d45317fb05451576c2 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 16 May 2020 09:44:31 +0100 Subject: [PATCH] Moved `config.treeview_size` from `config.lua` to `treeview.lua` --- data/core/config.lua | 1 - data/plugins/treeview.lua | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data/core/config.lua b/data/core/config.lua index b12aa3f..b901e58 100644 --- a/data/core/config.lua +++ b/data/core/config.lua @@ -8,7 +8,6 @@ config.mouse_wheel_scroll = 50 config.file_size_limit = 10 config.symbol_pattern = "[%a_][%w_]*" config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-" -config.treeview_size = 200 * SCALE config.undo_merge_timeout = 0.3 config.max_undos = 10000 config.highlight_current_line = true diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index 17cb198..426d125 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -6,9 +6,7 @@ local keymap = require "core.keymap" local style = require "core.style" local View = require "core.view" - -local TreeView = View:extend() - +config.treeview_size = 200 * SCALE local function get_depth(filename) local n = 0 @@ -19,6 +17,8 @@ local function get_depth(filename) end +local TreeView = View:extend() + function TreeView:new() TreeView.super.new(self) self.scrollable = true