Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Attempting to replay an empty macro permanently disables the macro register #2846

Closed
PabloMansanet opened this issue Jun 21, 2022 · 0 comments · Fixed by #2902
Closed

Attempting to replay an empty macro permanently disables the macro register #2846

PabloMansanet opened this issue Jun 21, 2022 · 0 comments · Fixed by #2902
Assignees
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@PabloMansanet
Copy link
Contributor

Summary

Attempting to replay a macro from a register where one hasn't been recorded yet causes the register to be left in an invalid state, such that no macro can be replayed from it ever again.

This interrelates with #2845 , and it's likely the fix I'm working on will address both.

Reproduction Steps

I tried this:

  1. q (I receive a correct error explaining the register is empty)
  2. Qihello world<ret>Q (macro is now recorded)
  3. q

I expected this to happen: The macro recorded in step 2 is replayed.

Instead, this happened: A spurious error (can't replay because we are already replaying from the same register)

Helix log

No response

Platform

Linux

Terminal Emulator

tmux-256color

Helix Version

22.05-76-g0ad10ce6

@PabloMansanet PabloMansanet added the C-bug Category: This is a bug label Jun 21, 2022
@PabloMansanet PabloMansanet changed the title Attempting to replay and empty macro permanently disables the macro register Attempting to replay an empty macro permanently disables the macro register Jun 21, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jun 21, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants