diff mcabber/mcabber/commands.c @ 2143:2f294c2b6778

Add a backward completion (Oleg) When we skip some needed item with tab, we can back with shift+tab.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 06 Jul 2014 14:51:17 +0200
parents f063e36425a2
children d3348deb32bd
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c	Sun Jul 06 14:51:14 2014 +0200
+++ b/mcabber/mcabber/commands.c	Sun Jul 06 14:51:17 2014 +0200
@@ -4078,7 +4078,9 @@
   } else if (!strcasecmp(arg, "compl_cancel")) {
     readline_cancel_completion();
   } else if (!strcasecmp(arg, "compl_do")) {
-    readline_do_completion();
+    readline_do_completion(TRUE);
+  } else if (!strcasecmp(arg, "compl_do_bwd")) {
+    readline_do_completion(FALSE);
   } else if (!strcasecmp(arg, "clear_history")) {
     readline_clear_history();
   } else {