Mercurial > hg
diff mcabber/src/commands.c @ 462:d580e87c11ed
Add "/buffer %n"
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 29 Sep 2005 21:28:39 +0200 |
parents | 1d8f5b3a5f2b |
children | e4840b288be0 |
line wrap: on
line diff
--- 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!");