micro/internal/action
Dmytro Maluka 1f71667616
Fix termpane not closing automatically after terminal job finished (#3386)
Fix regression caused by the fix 0de16334d3 ("micro: Don't forward
nil events into the sub event handler"): even if the terminal was
started with `wait` set to false, it is not closed immediately after
it finished its job, instead it shows "Press enter to close".

The reason is that since the commit b68461cf72 ("Terminal plugin
callback support") the termpane code has been (slightly hackily) relying
on nil events as notifications to close the terminal after it finished
its job. So fix this by introducing a separate CloseTerms() function
for notifying termpanes about that, decoupled from HandleEvent() which
is for tcell events only.
2024-07-15 09:35:50 +02:00
..
actions.go Rework FindMatchingBrace() interface and implementation (#3319) 2024-06-05 00:56:19 +02:00
actions_other.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
actions_posix.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
bindings.go Don't use tcell's Rune() for non-KeyRune events 2024-06-10 02:30:55 +02:00
bufpane.go De-duplicate code for KeyEvent creation 2024-06-10 02:54:37 +02:00
command.go Fixing tabmove not working properly when there's a split in pane (#3371) 2024-07-07 10:20:22 +02:00
defaults.go Update keybinding docs 2020-09-06 17:38:23 -04:00
defaults_darwin.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
defaults_other.go Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
events.go De-duplicate code for KeyEvent creation 2024-06-10 02:54:37 +02:00
globals.go Improve comments 2021-08-21 17:58:30 -04:00
infocomplete.go action: Fix the duplication of the unknown filetype (#3258) 2024-04-19 06:01:27 +02:00
infopane.go De-duplicate code for KeyEvent creation 2024-06-10 02:54:37 +02:00
keytree.go More style improvements 2021-08-21 18:04:08 -04:00
pane.go More style improvements 2021-08-21 18:04:08 -04:00
rawpane.go Update to tcell v2 2020-09-05 14:52:35 -04:00
tab.go Fix termpane not closing automatically after terminal job finished (#3386) 2024-07-15 09:35:50 +02:00
terminal_supported.go Check error in terminal emulator 2020-07-27 17:43:55 -04:00
terminal_unsupported.go Use actual lua functions for callbacks instead of strings 2020-02-08 15:49:41 -05:00
termpane.go Fix termpane not closing automatically after terminal job finished (#3386) 2024-07-15 09:35:50 +02:00