From 955d92bcc73737c83a3fb7d6cc00a788f6b97df1 Mon Sep 17 00:00:00 2001 From: krzosa Date: Mon, 11 Aug 2025 17:57:48 +0200 Subject: [PATCH] Small fixes --- src/text_editor/commands_bindings.cpp | 4 ++-- src/text_editor/generated.cpp | 1 - src/text_editor/lua_api.cpp | 1 - src/text_editor/text_editor.cpp | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/text_editor/commands_bindings.cpp b/src/text_editor/commands_bindings.cpp index f4a5e48..6a2126e 100644 --- a/src/text_editor/commands_bindings.cpp +++ b/src/text_editor/commands_bindings.cpp @@ -615,10 +615,10 @@ void OnCommand(Event event) { } - if (AltPress(SDLK_L)) { + if (CtrlPress(SDLK_SEMICOLON) || CtrlShiftPress(SDLK_Q)) { Command_Open(FetchLoadWord(), "exec"); } - if (CtrlPress(SDLK_Q)) { + else if (CtrlPress(SDLK_Q)) { if (active.view->fuzzy_search) { bool success = false; Range range = active.view->carets[0].range; diff --git a/src/text_editor/generated.cpp b/src/text_editor/generated.cpp index a5ad997..f634b7a 100644 --- a/src/text_editor/generated.cpp +++ b/src/text_editor/generated.cpp @@ -67,7 +67,6 @@ Style.IndentSize = 4 Style.FontSize = 15 Style.FontFilter = 0 Style.Font = GetExeDir().."/CascadiaMono.ttf" -Print("Style.Font", Style.Font) Style.VCVarsall = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat" Style.TrimWhitespaceOnSave = true Style.ClangFormatOnSave = false diff --git a/src/text_editor/lua_api.cpp b/src/text_editor/lua_api.cpp index 657a7e3..80e8aac 100644 --- a/src/text_editor/lua_api.cpp +++ b/src/text_editor/lua_api.cpp @@ -409,7 +409,6 @@ void InitLuaConfig() { lua_setglobal(LuaState, "OS_VALUE"); // Init base config, test that it works and initialize the lua stuff - ReportConsolef("load base lua config"); if (!luaL_dostring(LuaState, BaseLuaConfig.data) == LUA_OK) { const char *error_message = lua_tostring(LuaState, -1); ReportErrorf("Failed to load base lua config! %s", error_message); diff --git a/src/text_editor/text_editor.cpp b/src/text_editor/text_editor.cpp index 74cd782..ed7b257 100644 --- a/src/text_editor/text_editor.cpp +++ b/src/text_editor/text_editor.cpp @@ -422,7 +422,7 @@ int main(int argc, char **argv) } } - ReportConsolef("WorkDir = %.*s\n", FmtString(WorkDir)); + ReportConsolef("WorkDir = %.*s", FmtString(WorkDir)); InitLuaConfig(); if (testing) InitTests(); #if _WIN32