Skip to content

Fix builtin.registers #3463

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mathiasuk
Copy link

Fix editing a letter register (A-Z) would always append to the register, fixed by editing a-z instead.

Fix picker not updating after editing a register.

Fix editing of read-only registers

Description

Fix three small bugs reported in #3462:

  • Editing read-only registers results in error
  • Editing named registers appends to content instead of replace
  • Editing a register does not refresh the picker.

Fixes #3462

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration

  • [ x] Edited named and read-only registers, named registers are updated as expected, read-only are ignored, picker is refrshed.

Configuration:

  • Neovim version (nvim --version): NVIM v0.11.0
    Build type: Release
    LuaJIT 2.1.1741730670
  • Operating system and version: Debian Testing 13

Checklist:

  • [ x] My code follows the style guidelines of this project (stylua)
  • [ x] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations) ((Not applicable)

Fix editing a letter register (A-Z) would always append to the register,
fixed by editing a-z instead.

Fix picker not updating after editing a register.

builtin.registers: Fix editing of read-only registers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc bugs with builtin.registers
1 participant