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

Re: Segfault in hrealloc somewhere between rpromts and syntax highlighting



2014/04/06 16:05, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
> index 3c7cff9..b916bd6 100644
> (snip)
> 	if (strcmp(zlemetaline, ol)) {
> +	    zle_restore_positions();

It seems this causes the following problem:

$ echo foobar<RET>
$ echo !$<TAB>
$ echo fo

i.e., <TAB> completes '!$' to 'fo', not 'foobar'.
'echo !$<RET>' correctly expands to 'echo foobar', of course.

Maybe zlemetacs/zlematall need not to be restored?
(but the memory allocated by zle_save_positions() must be freed.)



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