Skip to content

[BUG] -e exec commands not working on *stdin* scratch buffer #5423

@gknittl

Description

@gknittl

Version of Kakoune

v2025.06.03

Reproducer

First, thank you for Kakoune, still loving it!

to reproduce launch kak from a terminal prompt with the following command line:

for i in {1..5}; do echo $i; done|kak -e "exec jge;eval rename-buffer temp"
or
for i in {1..5}; do echo $i; done|kak -e "eval rename-buffer temp;exec jge"

for i in {1..5}; do echo $i; done|kak -e "exec <percent>;eval rename-buffer temp"

Outcome

This creates a *stdin* scratch buffer with 6 lines. cursor remains at 1,1. rename-buffer does work as expected. d. % fails to select the entire buffer. Manually entering the commands works.

Expectations

Position the cursor to the end of buffer; select the entire buffer; In general execute keys

Additional information

Debian 13 clean install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions