summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-02 08:45:32 +0000
committernicm <nicm@openbsd.org>2019-04-02 08:45:32 +0000
commit36f15d15b72d7c176b7603cd99a09a862ded0179 (patch)
treea0627b2b76ce218936f8274f205f9dcc76063af7 /usr.bin/tmux/tmux.h
parentMove to 6.5 release rathe than -beta. That means "pkg_add -u -Dsnap" (diff)
downloadwireguard-openbsd-36f15d15b72d7c176b7603cd99a09a862ded0179.tar.xz
wireguard-openbsd-36f15d15b72d7c176b7603cd99a09a862ded0179.zip
Store and restore cursor across reflow by working out a position based
on unwrapped lines, rather than a grid offset. Fixes problems reported by Thomas Sattler and Paul de Weerd.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 86f5a58b8f6..750ac755722 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.877 2019/03/25 18:59:55 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.878 2019/04/02 08:45:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2101,8 +2101,8 @@ char *grid_string_cells(struct grid *, u_int, u_int, u_int,
void grid_duplicate_lines(struct grid *, u_int, struct grid *, u_int,
u_int);
void grid_reflow(struct grid *, u_int);
-u_int grid_to_offset(struct grid *, u_int, u_int);
-void grid_from_offset(struct grid *, u_int, u_int *, u_int *);
+void grid_wrap_position(struct grid *, u_int, u_int, u_int *, u_int *);
+void grid_unwrap_position(struct grid *, u_int *, u_int *, u_int, u_int);
/* grid-view.c */
void grid_view_get_cell(struct grid *, u_int, u_int, struct grid_cell *);