Skip to content

[BUG] Sending selection value to REPL fails for very large selection #5344

@pylasnier

Description

@pylasnier

Version of Kakoune

v2024.05.18

Reproducer

When sending text selection to tmux by repl-send-text, if the selection is too large (~1k lines), it sends the last thing it sent rather than the current selection. Trying to use the %val{selection} expansion or derived forms e.g. %sh{echo $kak_selection} has the same issue, however the selection expansion does not have this issue without using repl-send-text, e.g. echo %val{selection} has the expected behaviour.

Outcome

It sends the last thing it sent rather than the current selection.

Expectations

repl-send-text should send the text selection to a REPL.

Additional information

NixOS unstable, run in tmux for REPL commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions