about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-08 11:44:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-08 11:44:09 +0000
commit2ace0ce4f2803367a3006384172136a54118614e (patch)
treeb5d8be867c03a0d7fc05044308e216cc7cd0eb2b /Src/Zle/complist.c
parent8db5846e31506ecd0e5a50202411f22725d63e43 (diff)
downloadzsh-2ace0ce4f2803367a3006384172136a54118614e.tar.gz
zsh-2ace0ce4f2803367a3006384172136a54118614e.tar.xz
zsh-2ace0ce4f2803367a3006384172136a54118614e.zip
19553: rename c in zle to lastchar
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index ea86d79e9..d43a03677 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1859,7 +1859,7 @@ msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp)
     msearchpush(ptr, back);
 
     if (ins) {
-        s[0] = c;
+        s[0] = lastchar;
         s[1] = '\0';
 
         msearchstr = dyncat(msearchstr, s);
@@ -2754,9 +2754,9 @@ domenuselect(Hookdef dummy, Chdata dat)
                     }
                 }
                 if (cmd == Th(z_selfinsertunmeta)) {
-                    c &= 0x7f;
-                    if (c == '\r')
-                        c = '\n';
+                    lastchar &= 0x7f;
+                    if (lastchar == '\r')
+                        lastchar = '\n';
                 }
                 wrap = 0;
                 np = msearch(p, ins, (ins ? (mode == MM_BSEARCH) : back),