From ebcfa63de1e2341f6a092a967e56bb0bebf3da92 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 8 Dec 2020 23:36:50 +0100 Subject: [PATCH] Fix centerings of text in EmptyView --- data/core/rootview.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 3fd6e6d5..834e96c4 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -19,10 +19,10 @@ local function draw_text(x, y, color) local lines = { { fmt = "%s to run a command", cmd = "core:find-command" }, { fmt = "%s to open a file from the project", cmd = "core:find-file" }, - { fmt = "%s to open a folder", cmd = "core:open-folder" }, + { fmt = "%s to change project folder", cmd = "core:open-folder" }, } th = style.font:get_height() - y = y + (dh - th * 2 - style.padding.y) / 2 + y = y + (dh - (th + style.padding.y) * #lines) / 2 local w = 0 for _, line in ipairs(lines) do local text = string.format(line.fmt, keymap.get_binding(line.cmd))