summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-21 12:40:26 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-21 12:40:26 -0500
commit617907fb4731d67f6e7aca17b9dd7881f2093aad (patch)
treede7378592c0ccd7d37a08cab05dfb4092efcd745 /main.c
parent34fa190c3d490dd8cfec37d27bc03182f2a725a2 (diff)
started to generalize selector code
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.c b/main.c
index 2a47545..8af990c 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
// @TODO:
// - Ctrl+D = :find-definition --- tag menu (see all tags, select one)
+// - fix automatic horizontal scrolling
// - goto line
@@ -8,11 +9,11 @@
// - split
-// - completion
-
// - Windows installation
+// - on crash, output backtrace to log
// - restore previously opened files (setting: restore-session)
-// - on crash, output backtrace to log, save buffers to temp directory
+
+// - completion
#include "base.h"
no_warn_start
@@ -392,6 +393,8 @@ int main(int argc, char **argv) {
memset(ted->nmouse_clicks, 0, sizeof ted->nmouse_clicks);
ted->scroll_total_x = ted->scroll_total_y = 0;
+ ted->line_buffer_submitted = false;
+
ted_update_window_dimensions(ted);
u32 key_modifier = (u32)ctrl_down << KEY_MODIFIER_CTRL_BIT
| (u32)shift_down << KEY_MODIFIER_SHIFT_BIT