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

[BUG] set-option local gets lost for eval -try-client #5264

Open
losnappas opened this issue Dec 16, 2024 · 0 comments
Open

[BUG] set-option local gets lost for eval -try-client #5264

losnappas opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@losnappas
Copy link

losnappas commented Dec 16, 2024

Version of Kakoune

9c458c5

Reproducer

decl int testing 0
def -override tex %{ 
  set local testing 33
  eval -try-client tools %{
    echo -debug "val: %opt(testing)"
  }
}

:tex<ret> # => 33
:new rename-client tools<ret>
# => switch back to prev client
:tex<ret> # => 0
# If I run it in the tools client, I get 33.

Outcome

The local option value doesn't carry over to -try-client client.

Expectations

I was expecting local to carry over to the other eval.

Additional information

$ kak -version
Kakoune vgit-9c458c50661446fc6e7295787b06422137af099d
@losnappas losnappas added the bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant