mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Split most of tty_cmd_cell off to tty_cell. First step on making tty_cmd_* take
a window_pane for later use emulating scroll region.
This commit is contained in:
14
tty.c
14
tty.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tty.c,v 1.65 2009-02-07 00:05:23 nicm Exp $ */
|
||||
/* $Id: tty.c,v 1.66 2009-02-11 06:50:16 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -629,6 +629,16 @@ tty_cmd_clearscreen(
|
||||
|
||||
void
|
||||
tty_cmd_cell(struct tty *tty, struct screen *s, u_int oy, va_list ap)
|
||||
{
|
||||
struct grid_cell *gc;
|
||||
|
||||
gc = va_arg(ap, struct grid_cell *);
|
||||
|
||||
tty_cell(tty, s, oy, gc);
|
||||
}
|
||||
|
||||
void
|
||||
tty_cell(struct tty *tty, struct screen *s, u_int oy, struct grid_cell *gc)
|
||||
{
|
||||
struct grid_cell *gc;
|
||||
u_int i, width;
|
||||
@ -636,8 +646,6 @@ tty_cmd_cell(struct tty *tty, struct screen *s, u_int oy, va_list ap)
|
||||
|
||||
tty_cursor(tty, s->cx, s->cy, oy);
|
||||
|
||||
gc = va_arg(ap, struct grid_cell *);
|
||||
|
||||
/* If this is a padding character, do nothing. */
|
||||
if (gc->flags & GRID_FLAG_PADDING)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user