summaryrefslogtreecommitdiff
path: root/lua/telescope/actions/utils.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-01-09 21:18:15 +0100
committerGitHub <noreply@github.com>2022-01-09 21:18:15 +0100
commitc54fc1733e440ebe730f68a838c54c7c7e70e6fd (patch)
tree1dd136e91894d786de9d036329ce4cdb6629840d /lua/telescope/actions/utils.lua
parent5060f3f0ab33504e728a8673dc08679947c35ded (diff)
Revert "fix: folding when a file is opened (#1643)" (#1673)
This reverts commit 01426c491b2b612b48f48b26e2e77679006999d3.
Diffstat (limited to 'lua/telescope/actions/utils.lua')
-rw-r--r--lua/telescope/actions/utils.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/lua/telescope/actions/utils.lua b/lua/telescope/actions/utils.lua
index 01d9e79..4d0c17d 100644
--- a/lua/telescope/actions/utils.lua
+++ b/lua/telescope/actions/utils.lua
@@ -6,7 +6,6 @@
--- Generally used from within other |telescope.actions|
---@brief ]]
-local log = require "telescope.log"
local action_state = require "telescope.actions.state"
local utils = {}
@@ -103,22 +102,4 @@ function utils.get_registered_mappings(prompt_bufnr)
return ret
end
---- Internal function for autocmd
---- Please dont call (subject to change)
-function utils.__jump_to(row, col)
- if row and col then
- local ok, err_msg = pcall(vim.api.nvim_win_set_cursor, 0, { row, col })
- if not ok then
- log.debug("Failed to move to cursor:", err_msg, row, col)
- end
- end
-end
-
---- Internal function for autocmd
---- Please dont call (subject to change)
-function utils.__open_file_at(command, filename, row, col)
- vim.cmd(string.format([[:%s %s]], command, filename))
- utils.__jump_to(row, col)
-end
-
return utils