If I write following command:
systemctl lis<cursor>(t-unit-files)
, then after pressing right arrow I will get following behavior:
systemctl list<cursor>-unit-files
, but expected behavior is following:
systemctl list-unit-files<cursor>
This bug occurs only in 0.6.2-1. Version 0.6.1-1 works as expected.
I got the same problem.
The issue was introduced in commit 676aebd by setting the cursor to max_cursor_pos instead of #BUFFER.
- CURSOR=${#BUFFER}
+ CURSOR=${max_cursor_pos}
where max_cursor_pos is equal to the length of the buffer before the suggestion is appended.
Hence the cursor stays where it is.
The problem also exists when using vi-keybindings.
Thanks guys, major oversight on my part. Will get this fixed soon. And will get a test written up for this so it should never happen again.
Ok please try branch fixes/move-cursor-on-accept (PR #453). It should fix this issue and maintain the fixed behavior for #302 as well.
I also encountered the same problem, please fix it as soon as possible.:rose:
fixes/move-cursor-on-accept works for me. The cursor jumps to the end and dl works as intended.
fixes/move-cursor-on-acceptworks for me. The cursor jumps to the end anddlworks as intended.
I second that.
@ericfreese Thanks for resolving this so quickly
Most helpful comment
Ok please try branch
fixes/move-cursor-on-accept(PR #453). It should fix this issue and maintain the fixed behavior for #302 as well.