From d7a7a3efde175e944cc6943170c9f60467850060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 23 Jul 2015 14:38:45 +0200 Subject: vis: add infrastructure to support multiple cursors/selections This cleans up the existing selection handling code and adds the necessary bits to eventually support multiple cursors/selections. The cursor position is kept track of using marks, which means retrieving the cursor position is no longer a constant time operation. Furthermore the terminal cursor is no longer used, instead the whole window is redrawn after every cursor movement. --- ui.h | 1 - 1 file changed, 1 deletion(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 1a65184..4f61ec1 100644 --- a/ui.h +++ b/ui.h @@ -54,7 +54,6 @@ struct UiWin { void (*draw)(UiWin*); void (*draw_text)(UiWin*, const Line*); void (*draw_status)(UiWin*); - void (*cursor_to)(UiWin*, int x, int y); void (*reload)(UiWin*, File*); void (*options)(UiWin*, enum UiOption); }; -- cgit v1.2.3