9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.62k stars 320 forks source link

Acme crashes on backward addr and dot=addr call #556

Open jcowgar opened 2 years ago

jcowgar commented 2 years ago

Given a file:

{ some text }
{ cursor here }

Then at the command line:

echo -n "-/{/,/}/" | 9p write acme/$winid/addr
echo -n "dot=addr" | 9p write acme/$winid/ctl

Acme crashes:

acme: acme: textsetselect p0=14 p1=13 q0=14 q1=13 t->org=0 nchars=29
9p: write error: muxrpc: unexpected eof

The desired output would be for { cursor here } to be selected.

If you have the same file in Acme and execute from within Acme Edit -/{/,/}/, then it works.

If the cursor is inside of the some text block (first block) all works fine, inside Acme and in the shell.