Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[BUG] insert-last-word gets stuck at comments



Hello Zsh Workers,

This may be a somewhat minor bug, but I think that when
interactive_comments is set, the 'insert-last-word' widget gets stuck
on lines that are fully commented:

    $ zsh -f -i
    % setopt interactive_comments
    % echo hi #comment
    hi
    % # blah blah
    % echo bye #comment
    bye
    % echo foo
    foo
    % echo <Esc>.<Esc>.<Esc>.

I would have expected to see "echo hi" after the command line prompt
at this point, but I see "echo bye".

    zsh 5.8 (x86_64-pc-linux-gnu)

Thanks!

Frederick




Messages sorted by: Reverse Date, Date, Thread, Author