diff options
author | max397574 <[email protected]> | 2021-12-06 13:13:49 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-12-06 13:13:49 +0100 |
commit | bf07b0b2f31f83cadbc708142748b5ac5a3deb6c (patch) | |
tree | c069f07e89112062da7197e0390966ffa5b22065 | |
parent | 747a18c51cd51dedbc4fbca22af2a2e844842d4a (diff) |
feat(oldfiles): remove directory from path
-rw-r--r-- | lua/startup/utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 0dd6b3b..0340154 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -196,7 +196,7 @@ function U.get_oldfiles_directory(amount) if oldfiles_amount >= amount then break end - table.insert(oldfiles, (string.sub(file, 1, -1))) + table.insert(oldfiles, (string.sub(file, #directory+1, -1))) oldfiles_amount = oldfiles_amount + 1 end local length = U.longest_line(oldfiles) + 2 |