Skip to content

Commit

Permalink
don't need to restore small delete register.
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 committed Oct 27, 2023
1 parent ce3a5aa commit 5ed7cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/luasnip/util/select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ local start_line, start_col, end_line, end_col
local mode
function M.pre_cut()
-- store registers so we don't change any of them.
-- "" is affected since we perform a cut (s), 1-9 also (although :h
-- quote_number seems to state otherwise for cuts to specific registers..?).
saved_registers = store_registers(
"",
"1",
Expand All @@ -79,7 +81,6 @@ function M.pre_cut()
"7",
"8",
"9",
"-",
"z"
)

Expand Down

0 comments on commit 5ed7cba

Please sign in to comment.