aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/window.c b/window.c
index 8a2ad12..716d9e5 100644
--- a/window.c
+++ b/window.c
@@ -137,6 +137,11 @@ Filerange window_selection_get(Win *win) {
return sel;
}
+void window_selection_set(Win *win, Filerange *sel) {
+ win->sel = *sel;
+ window_draw(win);
+}
+
Filerange window_viewport_get(Win *win) {
return (Filerange){ .start = win->start, .end = win->end };
}
@@ -782,10 +787,6 @@ void window_selection_start(Win *win) {
curs_set(0);
}
-void window_selection_end(Win *win) {
- win->sel.end = window_cursor_get(win);
-}
-
void window_syntax_set(Win *win, Syntax *syntax) {
win->syntax = syntax;
}