select_register
incorrectly shows the oldest value in registers
#5241
Labels
C-bug
Category: This is a bug
Summary
Most commands overwrite the entire register with a
Vec
of size1
, so at any given point in time there's only 1 value in the register. However, some commands likesearch
maintains history and actually pushes to the register instead. Currently, theselect_register
command ("
) incorrectly takes the oldest value for these stacked registers instead of the latest one.Discovered this bug while working on #5112 :)
Reproduction Steps
Simply make two different searches, then press
"
to see the list of registers.In the list,
"
would show the earlier search pattern instead of the latest one for register/
.Helix log
No response
Platform
Linux
Terminal Emulator
tmux 3.3a
Helix Version
22.12-56-g6ab85917
The text was updated successfully, but these errors were encountered: