summaryrefslogtreecommitdiff
path: root/lua/telescope/state.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/state.lua')
-rw-r--r--lua/telescope/state.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/telescope/state.lua b/lua/telescope/state.lua
index 0ae31dd..8399c05 100644
--- a/lua/telescope/state.lua
+++ b/lua/telescope/state.lua
@@ -1,14 +1,14 @@
local state = {}
-state._statuses = {}
+TelescopeGlobalState = TelescopeGlobalState or {}
--- Set the status for a particular prompt bufnr
function state.set_status(prompt_bufnr, status)
- state._statuses[prompt_bufnr] = status
+ TelescopeGlobalState[prompt_bufnr] = status
end
function state.get_status(prompt_bufnr)
- return state._statuses[prompt_bufnr] or {}
+ return TelescopeGlobalState[prompt_bufnr] or {}
end
function state.clear_status(prompt_bufnr)