mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Fix scrolling.
This commit is contained in:
parent
1a58f958be
commit
9043fe891a
1
TODO
1
TODO
@ -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
|
||||||
|
4
status.c
4
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 <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;
|
||||||
|
Loading…
Reference in New Issue
Block a user