Skip to content
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

Placeholder isn't updated when nested tab stop changes #28

Closed
dcampos opened this issue Nov 18, 2021 · 0 comments
Closed

Placeholder isn't updated when nested tab stop changes #28

dcampos opened this issue Nov 18, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@dcampos
Copy link
Owner

dcampos commented Nov 18, 2021

When a mirror tab stop is placed within a placeholder, its value is correctly mirrored correctly from the tab stop it refers to, but its parent placeholder's bounds aren't updated to include the mirrored value.

Steps to reproduce

  1. Define a Lua snippet like local ${1:module} = ${2:$1}.
  2. Expand the snippet.
  3. Change the first value to 'snippy'
  4. Jump to the next placeholder.

Expected behavior

Neovim should be in select mode and the word 'snippy' should become selected.

Actual behavior

Cursor is placed after the the mirrored word 'snippy' in insert mode.

snippy-nested1

@dcampos dcampos added bug Something isn't working enhancement New feature or request labels Nov 18, 2021
dcampos added a commit that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant