From 867778be1894c3c6c9455bec5f360ce7fb5e4e8b Mon Sep 17 00:00:00 2001 From: max397574 Date: Sat, 18 Dec 2021 12:12:41 +0100 Subject: fix(oldfiles): fix mappings --- lua/startup/utils.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index fe18f8e..8deb655 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -4,6 +4,8 @@ local flag = false local new_cursor_pos local help_window +local log = require"startup.log" + local oldfiles_total = 0 local all_oldfiles = {} @@ -232,7 +234,7 @@ function U.get_oldfiles_directory(amount) break end table.insert(oldfiles, (string.sub(file, #directory + 1, -1))) - table.insert(all_oldfiles, (string.sub(file, 4, -1))) + table.insert(all_oldfiles, file) oldfiles_amount = oldfiles_amount + 1 end local oldfiles_shortened = {} -- cgit v1.2.3