[/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...)
--- 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;