summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.lua
diff options
context:
space:
mode:
author莊喬 <bootleq@gmail.com>2023-02-19 18:08:46 +0800
committerGitHub <noreply@github.com>2023-02-19 11:08:46 +0100
commitb0395c2882dbc7412edad9888794de131ad6e365 (patch)
tree20c8b8cba7bc633dc2ac171c39d98247fa4bcc56 /lua/telescope/utils.lua
parentee90403e4039cc59227d88bf71755d9227305cf3 (diff)
fix: avoid eval "= directly in builtin registers picker (#2347)
When "= contains expression not ought to be run in current context, the `getreg('=')` raises error. For example `:put =foo` (where `foo` is undefined) then open registers picker it fails. Also #2228. Now specify second arg to `getreg` to get register expr (instead of "evaluated" result) as content, like what `:registers` command displays. This has behavior change, if user still want to see/paste the evaluated result, a customized action will be needed.
Diffstat (limited to 'lua/telescope/utils.lua')
0 files changed, 0 insertions, 0 deletions