diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-25 13:03:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-11-25 13:03:01 +0000 |
commit | 89db56fb09e0b5d121eefb98118c31238d6f6da8 (patch) | |
tree | 353df817d007f037da430911f71c730b09b1a13f | |
parent | 9a3dde0f53fbd61ef236e9b6a844b28166c22921 (diff) | |
download | rtmux-89db56fb09e0b5d121eefb98118c31238d6f6da8.tar.gz rtmux-89db56fb09e0b5d121eefb98118c31238d6f6da8.tar.bz2 rtmux-89db56fb09e0b5d121eefb98118c31238d6f6da8.zip |
Disable this optimisation since cursor can be updated by stuff outside.
-rw-r--r-- | screen.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.46 2007-11-25 11:13:46 nicm Exp $ */ +/* $Id: screen.c,v 1.47 2007-11-25 13:03:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -382,6 +382,8 @@ screen_draw_move(struct screen_draw_ctx *ctx, u_int px, u_int py) if (px == ctx->cx && py == ctx->cy) return; + /* XXX disabled while things outside can move the cursor (eg + window-more.c writes characters) if (px == 0 && py == ctx->cy) input_store8(ctx->b, '\r'); else if (px == ctx->cx && py == ctx->cy + 1) @@ -389,8 +391,9 @@ screen_draw_move(struct screen_draw_ctx *ctx, u_int px, u_int py) else if (px == 0 && py == ctx->cy + 1) { input_store8(ctx->b, '\r'); input_store8(ctx->b, '\n'); - } else - input_store_two(ctx->b, CODE_CURSORMOVE, py + 1, px + 1); + } else + */ + input_store_two(ctx->b, CODE_CURSORMOVE, py + 1, px + 1); ctx->cx = px; ctx->cy = py; |