No space after prompt.

pull/1/head
Nicholas Marriott 2008-06-19 20:48:48 +00:00
parent 74d8f0bf1d
commit 6d9eaa6440
2 changed files with 5 additions and 7 deletions

6
TODO
View File

@ -82,9 +82,7 @@ option to pass through to xterm window when switching window
should not emulate it doing so should not emulate it doing so
- activity/bell should be per-window not per-link? what if it is cur win in - activity/bell should be per-window not per-link? what if it is cur win in
session not being watched? session not being watched?
- document status-left/status-right/status-interval/set-titles - document status-left/status-right/status-interval/set-titles/command-prompt
- enhance paste buffers. per-session buffers, lots of command love - enhance paste buffers. per-session buffers, lots of command love
- stuff like rename would be nice to be able to do in-client like screen, if - command history for command-prompt
it could be implemented in a non-icky way (we have control over the tty fd
now in the server so should be easier...)
- tidy up window modes - tidy up window modes

View File

@ -1,4 +1,4 @@
/* $Id: status.c,v 1.32 2008-06-19 19:40:35 nicm Exp $ */ /* $Id: status.c,v 1.33 2008-06-19 20:48:48 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -323,7 +323,7 @@ status_prompt_redraw(struct client *c)
return; return;
offset = 0; offset = 0;
xx = strlen(c->prompt_string) + 1; xx = strlen(c->prompt_string);
if (xx > c->sx) if (xx > c->sx)
xx = c->sx; xx = c->sx;
yy = c->sy - 1; yy = c->sy - 1;
@ -332,7 +332,7 @@ status_prompt_redraw(struct client *c)
screen_redraw_set_attributes(&ctx, ATTR_REVERSE, 0x88); screen_redraw_set_attributes(&ctx, ATTR_REVERSE, 0x88);
screen_redraw_move_cursor(&ctx, 0, yy); screen_redraw_move_cursor(&ctx, 0, yy);
screen_redraw_write_string(&ctx, "%.*s ", (int) xx, c->prompt_string); screen_redraw_write_string(&ctx, "%.*s", (int) xx, c->prompt_string);
left = c->sx - xx; left = c->sx - xx;
if (left != 0) { if (left != 0) {