Misc improvements

This commit is contained in:
krzosa
2025-12-28 10:29:05 +01:00
parent 1011c63494
commit 00442da5dd
6 changed files with 67 additions and 39 deletions

View File

@@ -169,21 +169,6 @@ void Command_ShowBufferList() {
SelectRange(command_bar.view, GetBufferBeginAsRange(command_bar.buffer));
} RegisterCommand(Command_ShowBufferList, "ctrl-p");
void EvalCommand(String command) {
For (CommandFunctions) {
if (it.name == command) {
ProfileScopeEx(it.name);
it.function();
break;
}
}
}
void EvalCommand(String16 command) {
Scratch scratch;
EvalCommand(ToString(scratch, command));
}
void OpenCommand(BSet active) {
ProfileFunction();
Range range = active.view->carets[0].range;