diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-27 17:32:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-27 17:32:24 +0000 |
commit | 9043fe891a3d81d5edcfe6f80986db98e8ab1985 (patch) | |
tree | 1c024d87f956dd2606a1e93c3b0a620a7d4dc417 /status.c | |
parent | 1a58f958beee8bcb6c39776b12ca1a22255a15a7 (diff) | |
download | rtmux-9043fe891a3d81d5edcfe6f80986db98e8ab1985.tar.gz rtmux-9043fe891a3d81d5edcfe6f80986db98e8ab1985.tar.bz2 rtmux-9043fe891a3d81d5edcfe6f80986db98e8ab1985.zip |
Fix scrolling.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> @@ -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; |