aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-17 08:24:46 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-17 08:24:46 +0000
commit43d62c1ae3846ba1b33d79349be367ed3b6763cf (patch)
tree2669769866294fed8087b5dea4bf81d36daa7207 /tmux.h
parent70355021d8e8b83eaa3d947dc7a49b4eacff17fa (diff)
downloadrtmux-43d62c1ae3846ba1b33d79349be367ed3b6763cf.tar.gz
rtmux-43d62c1ae3846ba1b33d79349be367ed3b6763cf.tar.bz2
rtmux-43d62c1ae3846ba1b33d79349be367ed3b6763cf.zip
Instead of having a complicated check to see if the cursor is in the last
position to avoid an explicit wrap, actually move it there. Some UTF-8 fixes to come.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 0dcf7c37..ba14585a 100644
--- a/tmux.h
+++ b/tmux.h
@@ -970,6 +970,11 @@ struct tty_ctx {
u_int orupper;
u_int orlower;
+
+ /* Saved last cell on line. */
+ struct grid_cell last_cell;
+ struct grid_utf8 last_utf8;
+ u_int last_width;
};
/* Mouse input. */