Finite size jump history, improving backtrace, redo, undo grouping, similar for jump history
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user