Inc region in debug msg.

This commit is contained in:
Nicholas Marriott 2007-11-23 22:51:13 +00:00
parent 8da0b1fb99
commit a01093603b
3 changed files with 9 additions and 7 deletions

View File

@ -1,9 +1,9 @@
23 November 2007 3 November 2007
* Mostly complete copy & paste. Copy mode entered with C-b [ (copy-mode * Mostly complete copy & paste. Copy mode entered with C-b [ (copy-mode
command). In copy mode, arrow keys/page up/page down/hjkl/C-u/C-f navigate, command). In copy mode, arrow keys/page up/page down/hjkl/C-u/C-f navigate,
space or C-space starts selection, and enter or C-w copies and (important!) space or C-space starts selection, and enter or C-w copies and (important!)
exits copy mode. C-b ] (paste-buffer) pastes into current terminal. No exits copy mode. C-b ] (paste-buffer) pastes into current window. No
extra utility keys (bol/eol/clear selection/etc), only one single buffer, extra utility keys (bol/eol/clear selection/etc), only one single buffer,
and no buffer manipulation commands (clear/view/etc) yet. The code is also and no buffer manipulation commands (clear/view/etc) yet. The code is also
fugly :-(. fugly :-(.
@ -263,4 +263,4 @@
(including mutt, emacs). No status bar yet and no key remapping or other (including mutt, emacs). No status bar yet and no key remapping or other
customisation. customisation.
$Id: CHANGES,v 1.82 2007-11-23 17:52:54 nicm Exp $ $Id: CHANGES,v 1.83 2007-11-23 22:51:13 nicm Exp $

1
TODO
View File

@ -77,6 +77,7 @@
- garbage collect window history (100 lines at a time?) if it hasn't been used - garbage collect window history (100 lines at a time?) if it hasn't been used
in $x time (need window creation/use times) in $x time (need window creation/use times)
- lift SHRT_MAX limits for history - lift SHRT_MAX limits for history
- audit copy/scroll and other modes for problems with very small windows
-- For 0.2 -------------------------------------------------------------------- -- For 0.2 --------------------------------------------------------------------
- copy and paste - copy and paste

View File

@ -1,4 +1,4 @@
/* $Id: input.c,v 1.35 2007-11-21 14:50:41 nicm Exp $ */ /* $Id: input.c,v 1.36 2007-11-23 22:51:13 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -535,9 +535,10 @@ input_handle_sequence(u_char ch, struct input_ctx *ictx)
u_int i; u_int i;
struct input_arg *iarg; struct input_arg *iarg;
log_debug2("-- sq %zu: %hhu (%c): %u [sx=%u, sy=%u, cx=%u, cy=%u]", log_debug2("-- sq %zu: %hhu (%c): %u [sx=%u, sy=%u, cx=%u, cy=%u, "
ictx->off, ch, ch, ARRAY_LENGTH(&ictx->args), "ru=%u, rl=%u]", ictx->off, ch, ch, ARRAY_LENGTH(&ictx->args),
screen_size_x(s), screen_size_y(s), s->cx, s->cy); screen_size_x(s), screen_size_y(s), s->cx, s->cy, s->rupper,
s->rlower);
for (i = 0; i < ARRAY_LENGTH(&ictx->args); i++) { for (i = 0; i < ARRAY_LENGTH(&ictx->args); i++) {
iarg = &ARRAY_ITEM(&ictx->args, i); iarg = &ARRAY_ITEM(&ictx->args, i);
if (*iarg->data != '\0') if (*iarg->data != '\0')