diff --git a/TODO b/TODO index 45856562..967b5cb9 100644 --- a/TODO +++ b/TODO @@ -51,7 +51,6 @@ - document buffer stuff - document next/prev word -- fix prompt scrolling when line exceeds space **** - commands: save-buffer -b number filename load-buffer -b number filename copy-buffer -s src-session -t dst-session -a src-index -b dst-index diff --git a/status.c b/status.c index 7efb0627..0c9fc658 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.41 2008-06-23 22:12:29 nicm Exp $ */ +/* $Id: status.c,v 1.42 2008-06-27 17:32:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -350,7 +350,7 @@ status_prompt_redraw(struct client *c) if (c->prompt_index < left) size = strlen(c->prompt_buffer); else { - offset = c->prompt_index - left; + offset = c->prompt_index - left - 1; if (c->prompt_index == strlen(c->prompt_buffer)) left--; size = left;