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

Re: PATCH: 3.1.6-test-1: expansion return status



Peter Stephenson wrote:

> What I haven't attempted to get right is that the list should also be
> cleared if there are no matches.

It should be as simple as this -- or am I missing something?

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Wed Jul 14 09:21:07 1999
+++ Src/Zle/zle_tricky.c	Wed Jul 14 09:51:49 1999
@@ -1043,7 +1043,8 @@
 			}
 		}
 		ret = docompletion(s, lst, lincmd);
-	    }
+	    } else if (ret)
+		clearlist = 1;
 	} else
 	    /* Just do completion. */
 	    ret = docompletion(s, lst, lincmd);

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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