diff options
author | max397574 <[email protected]> | 2021-12-18 12:12:41 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-12-18 12:12:41 +0100 |
commit | 867778be1894c3c6c9455bec5f360ce7fb5e4e8b (patch) | |
tree | aa0ba2f321c3a10375572bd14651df98e32a15d5 /lua | |
parent | 0e0c341e06c6a12f4f46e22e43143cf7489f8694 (diff) |
fix(oldfiles): fix mappings
Diffstat (limited to 'lua')
-rw-r--r-- | lua/startup/utils.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 = {} |