summaryrefslogtreecommitdiff
path: root/lua/telescope/sorters.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-10-06 21:57:49 -0400
committerGitHub <noreply@github.com>2020-10-06 21:57:49 -0400
commitd32d4a6e0f0c571941f1fd37759ca1ebbdd5f488 (patch)
tree8cef3a32081bd0758d349a5d810d6f366def5f17 /lua/telescope/sorters.lua
parentcaf370cc378e7c606fd4f59c46533b0b0decbcea (diff)
fix: Reduce memory leaks (#148)
It is not 100% clear that we've gotten ALL the memory leaks, but it seems much much much better and doesn't look like it's going to die immediately or as often anymore :)
Diffstat (limited to 'lua/telescope/sorters.lua')
-rw-r--r--lua/telescope/sorters.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/sorters.lua b/lua/telescope/sorters.lua
index bc68fc1..d77baa5 100644
--- a/lua/telescope/sorters.lua
+++ b/lua/telescope/sorters.lua
@@ -54,7 +54,7 @@ end
sorters.Sorter = Sorter
TelescopeCachedTails = TelescopeCachedTails or nil
-do
+if not TelescopeCachedTails then
local os_sep = util.get_separator()
local match_string = '[^' .. os_sep .. ']*$'
TelescopeCachedTails = setmetatable({}, {