Fix scrolling.

This commit is contained in:
Nicholas Marriott 2008-06-27 17:32:24 +00:00
parent 1a58f958be
commit 9043fe891a
2 changed files with 2 additions and 3 deletions

1
TODO
View File

@ -51,7 +51,6 @@
- document buffer stuff - document buffer stuff
- document next/prev word - document next/prev word
- fix prompt scrolling when line exceeds space ****
- commands: save-buffer -b number filename - commands: save-buffer -b number filename
load-buffer -b number filename load-buffer -b number filename
copy-buffer -s src-session -t dst-session -a src-index -b dst-index copy-buffer -s src-session -t dst-session -a src-index -b dst-index

View File

@ -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 <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -350,7 +350,7 @@ status_prompt_redraw(struct client *c)
if (c->prompt_index < left) if (c->prompt_index < left)
size = strlen(c->prompt_buffer); size = strlen(c->prompt_buffer);
else { else {
offset = c->prompt_index - left; offset = c->prompt_index - left - 1;
if (c->prompt_index == strlen(c->prompt_buffer)) if (c->prompt_index == strlen(c->prompt_buffer))
left--; left--;
size = left; size = left;