changeset 445:7bf6c0c6a714

Fix command completion (2nd argument)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 25 Sep 2005 00:40:25 +0200
parents 5927c3bfba13
children 9f4e9e9aaf08
files mcabber/src/screen.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sun Sep 25 00:33:56 2005 +0200
+++ b/mcabber/src/screen.c	Sun Sep 25 00:40:25 2005 +0200
@@ -1345,7 +1345,7 @@
 
   // a) No completion if no leading slash ('cause not a command)
   // b) We can't have more than 2 parameters (we use 2 flags)
-  if (nrow < 0 || nrow > 2) return;
+  if (nrow < 0 || (nrow == 3 && !completion_started) || nrow > 3) return;
 
   if (nrow == 0) {      // Command completion
     row = &inputLine[1];