diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2020-10-07 23:00:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 17:00:59 -0400 |
| commit | c337911b797485d112833f0e692aa6a2c3ce1f65 (patch) | |
| tree | 1696884f6b1d5d623e7604ee39ee3777dc220202 /lua/telescope/actions.lua | |
| parent | a7957b2bdc5c3ce86092544448b4eb6ebcbb645e (diff) | |
Fix help preview and add highlighting to search result (#124)
* fix: make sure that `$VIMRUNTIME/doc/tags` is in `tags` path
* feat: highlight matched topic in helptags preview
* fixup: Use previewer setup and teardown
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'lua/telescope/actions.lua')
| -rw-r--r-- | lua/telescope/actions.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/telescope/actions.lua b/lua/telescope/actions.lua index 026d5ad..c1e1d03 100644 --- a/lua/telescope/actions.lua +++ b/lua/telescope/actions.lua @@ -163,8 +163,7 @@ function actions.close(prompt_bufnr) vim.api.nvim_win_close(prompt_win, true) pcall(vim.cmd, string.format([[silent bdelete! %s]], prompt_bufnr)) - - a.nvim_set_current_win(original_win_id) + pcall(a.nvim_set_current_win, original_win_id) end actions.set_command_line = function(prompt_bufnr) |
