changeset 196:58eb8ad9ef74

[/trunk] Changeset 208 by mikael * Minor changes: remove useless doupdate(), add comments, update TODO * Trap ctrl-q key (for future scr_jump_next_new_message() function...)
author mikael
date Sat, 07 May 2005 06:34:47 +0000
parents cdaa53d5ef70
children c289e3c39c48
files mcabber/src/TODO mcabber/src/screen.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/TODO	Sat May 07 06:26:46 2005 +0000
+++ b/mcabber/src/TODO	Sat May 07 06:34:47 2005 +0000
@@ -15,7 +15,6 @@
   maybe we could show it someway (maybe just a flag?).
 * Show number of online contacts in folded groups
 * Buddy buffer in full width (handy for cut'n paste!)
-* Emacs key bindings in input line (ctrl-w, ctrl-t)
 
 * Commands! :-)
   - /roster <hide_offline|show_offline|top|bottom>
--- a/mcabber/src/screen.c	Sat May 07 06:26:46 2005 +0000
+++ b/mcabber/src/screen.c	Sat May 07 06:34:47 2005 +0000
@@ -595,8 +595,6 @@
   i = g_list_position(buddylist, current_buddy);
   if (i == -1) { // This is bad
     scr_LogPrint("Doh! Can't find current selected buddy!!");
-    update_panels();
-    doupdate();
     return;
   } else if (i < offset) {
     offset = i;
@@ -1088,6 +1086,7 @@
     *(ptr_inputline-2) = *(ptr_inputline-1);
     *(ptr_inputline-1) = swp;
   } else {
+    // Swap the two characters before the cursor and move right.
     swp = *(ptr_inputline-1);
     *(ptr_inputline-1) = *ptr_inputline;
     *ptr_inputline++ = swp;
@@ -1382,6 +1381,9 @@
       case 14:  // Ctrl-n
           scr_ScrollDown();
           break;
+      case 17:  // Ctrl-q
+          // scr_jump_next_new_message();
+          break;
       case 20:  // Ctrl-t
           readline_transpose_chars();
           break;