Finite size jump history, improving backtrace, redo, undo grouping, similar for jump history

This commit is contained in:
Krzosa Karol
2025-12-26 15:40:03 +01:00
parent 509db7af46
commit 4221aa8fb7
11 changed files with 84 additions and 23 deletions

View File

@@ -39,6 +39,7 @@
#include "commands.cpp"
#include "commands_clipboard.cpp"
#include "scratch.cpp"
#include "draw.cpp"
#include "test/tests.cpp"
@@ -540,6 +541,15 @@ void Update(Event event) {
LastActiveLayoutWindowID = ActiveWindowID;
}
}
For (Windows) {
if (it->goto_history.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_history, 0);
}
if (it->goto_redo.len > ConfigJumpHistorySize) {
RemoveByIndex(&it->goto_redo, 0);
}
}
}
@@ -641,6 +651,7 @@ extern char **environ;
int main(int argc, char **argv)
#endif
{
InitOS((OSErrorReport *)printf);
#if _WIN32
int argc = __argc;
char **argv = __argv;