diff mcabber/src/commands.c @ 1177:10733d7de004

Refactor readline_accept_line() and readline_accept_line_down_hist() Add a parameter to readline_accept_line() for "down history".
author Mikael Berthe <mikael@lilotux.net>
date Wed, 04 Apr 2007 22:34:00 +0200
parents 960f34ec22a2
children 807815928754
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed Apr 04 22:03:49 2007 +0200
+++ b/mcabber/src/commands.c	Wed Apr 04 22:34:00 2007 +0200
@@ -2774,9 +2774,9 @@
   } else if (!strcasecmp(arg, "send_multiline")) {
     readline_send_multiline();
   } else if (!strcasecmp(arg, "iline_accept")) {
-    retval_for_cmds = readline_accept_line();
-  } else if (!strcasecmp(arg, "iline_accept_down_hist")) { // May be too long
-    retval_for_cmds = readline_accept_line_down_hist();
+    retval_for_cmds = readline_accept_line(FALSE);
+  } else if (!strcasecmp(arg, "iline_accept_down_hist")) {
+    retval_for_cmds = readline_accept_line(TRUE);
   } else if (!strcasecmp(arg, "compl_cancel")) {
     readline_cancel_completion();
   } else if (!strcasecmp(arg, "compl_do")) {