summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:48:54 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:48:54 -0500
commit94e09c98f3dbef3c041750cc019efbc29e9254e6 (patch)
tree50bc0bb82825eb495dbebc92478412972da78c45 /main.c
parent4aa02183b7f317ca1183b4d3e58ec9da166479d6 (diff)
start split
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index 58a98b0..76b17a7 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,7 @@
// @TODO:
-// - split
+// - get ctrl+w to work properly
+// - split depth limit
+// - resize split (i.e. change split_pos)
// - Windows installation
// - on crash, output backtrace to log
@@ -437,8 +439,10 @@ int main(int argc, char **argv) {
BufferPos buffer_pos;
if (buffer_pixels_to_pos(buffer, pos, &buffer_pos)) {
// user clicked on buffer
- if (!ted->menu)
+ if (!ted->menu) {
ted->active_buffer = buffer;
+ ted->active_node = node;
+ }
if (buffer == ted->active_buffer) {
add = false;
switch (ted->key_modifier) {