Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
expand-or-complete-prefix fix
- X-seq: zsh-workers 3183
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hacking and development)
- Subject: expand-or-complete-prefix fix
- Date: Sun, 1 Jun 1997 02:46:54 -0400 (EDT)
This patch should fix expand-or-complete-prefix in zsh-3.1.2-test1.
Zoltan
*** Src/Zle/zle_tricky.c 1997/06/01 06:13:15 3.1.2.12
--- Src/Zle/zle_tricky.c 1997/06/01 06:42:50
***************
*** 3850,3872 ****
int m = zmult;
/* insert a space and backspace. */
c = ' ';
selfinsert(); /* insert the extra character */
! forwardchar(); /* move towards beginning */
remove_at = cs;
/* do the expansion/completion. */
c = csafe;
- zmult = 1;
expandorcomplete(); /* complete. */
- zmult = -1;
/* remove the inserted space. */
! if (remove_at >= 0) {
! backwardchar(); /* move towards ends */
deletechar(); /* delete the added space. */
- }
zmult = m;
remove_at = -1;
}
--- 3850,3869 ----
int m = zmult;
/* insert a space and backspace. */
+ zmult = 1;
c = ' ';
selfinsert(); /* insert the extra character */
! backwardchar(); /* move towards beginning */
remove_at = cs;
/* do the expansion/completion. */
c = csafe;
expandorcomplete(); /* complete. */
/* remove the inserted space. */
! if (remove_at >= 0)
deletechar(); /* delete the added space. */
zmult = m;
remove_at = -1;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author