diff options
Diffstat (limited to 'window.c')
| -rw-r--r-- | window.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; } |
