mcabber/src/commands.c
changeset 462 d580e87c11ed
parent 461 1d8f5b3a5f2b
child 464 e4840b288be0
--- a/mcabber/src/commands.c	Wed Sep 28 21:56:35 2005 +0200
+++ b/mcabber/src/commands.c	Thu Sep 29 21:28:39 2005 +0200
@@ -136,6 +136,7 @@
   compl_add_category_word(COMPL_BUFFER, "top");
   compl_add_category_word(COMPL_BUFFER, "search_backward");
   compl_add_category_word(COMPL_BUFFER, "search_forward");
+  compl_add_category_word(COMPL_BUFFER, "%");
 
   // Group category
   compl_add_category_word(COMPL_GROUP, "fold");
@@ -659,6 +660,13 @@
       search_dir = 1;
     else
       scr_LogPrint(LPRINT_NORMAL, "Wrong or missing parameter");
+  } else if (*arg == '%') {
+    arg++;
+    while (*arg == ' ') arg++;
+    if (*arg)
+      scr_BufferPercent(atoi(arg));
+    else
+      scr_LogPrint(LPRINT_NORMAL, "Wrong or missing parameter");
   } else
     scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");