From 2fd7b2fbd46d773ba43ba5acde365d23de4dda90 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 3 Jan 2021 13:11:46 +0100 Subject: selection: allow selections to pivot around a range instead of a point Extend selection pivoting to allow selections to pivot around a range. Use this in word- and row-based selections to pivot around the initial word/row that was selected. This mimics the behavior of at least urxvt and xterm. --- terminal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 52eb0a84..a8bd5b0b 100644 --- a/terminal.h +++ b/terminal.h @@ -367,6 +367,11 @@ struct terminal { bool ongoing; bool spaces_only; /* SELECTION_SEMANTIC_WORD */ + struct { + struct coord start; + struct coord end; + } pivot; + struct { int fd; int col; -- cgit v1.3