diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 11:48:54 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 11:48:54 -0500 |
commit | 94e09c98f3dbef3c041750cc019efbc29e9254e6 (patch) | |
tree | 50bc0bb82825eb495dbebc92478412972da78c45 /main.c | |
parent | 4aa02183b7f317ca1183b4d3e58ec9da166479d6 (diff) |
start split
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) { |