micro/internal
Dmytro Maluka 0373a63b31 Refactor action execution code
Instead of calling execAction() and then letting it check whether it
should actually execute this action, do this check before calling
execAction(), to make the code clear and straightforward.

Precisely: for multicursor actions, call execAction() in a loop for
every cursor, but for non-multicursor actions, call execAction() just
once, without a loop. This, in particular, allows to get rid of the
hacky "c == nil" check, since we no longer iterate a slice that may
change in the meantime (since SpawnMultiCursor and RemoveMultiCursor
are non-multicursor actions and thus are no longer executed while
iterating the slice).
2024-07-18 23:54:57 +02:00
..
action Refactor action execution code 2024-07-18 23:54:57 +02:00
buffer Improve RemoveAllMultiCursors behavior 2024-07-18 23:54:57 +02:00
clipboard Use zyedidia/clipper for external clipboard 2022-06-14 08:40:57 -04:00
config Temporarily don't initialize runtime files in buffer test 2024-04-03 04:37:44 +02:00
display Rework FindMatchingBrace() interface and implementation (#3319) 2024-06-05 00:56:19 +02:00
info Reordered prompt done callback to avoid accessing out of bound history (#3318) 2024-06-02 20:00:13 +02:00
lua Revert "Don't expose Go timers directly to lua" (#3211) 2024-03-25 17:11:12 +01:00
screen Reset mouse release state after restarting the screen 2023-01-29 18:26:55 +01:00
shell Return error with start in RunInteractiveShell 2024-06-22 21:21:13 +08:00
util Move sigterm channel to internal/util 2024-06-17 18:08:18 +08:00
views chore: fix some typos (#3239) 2024-04-08 12:04:38 +02:00