Basic tests and trying to fix address sanitizer errors

This commit is contained in:
Krzosa Karol
2026-03-21 10:10:24 +01:00
parent 207fc65fec
commit 94ee03800d
5 changed files with 46 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
/*
- [ ] Switch fully to VSCode keybindings and learn to live with it
- [x] list_functions.sh and rg in general in the color mode is prinitng differently from terminal as well as output is truncated!
- [ ] Syntax for executing commands from root of project
- [ ] Syntax for executing commands from root of project, or maybe commands should be executed from root of the CurrentDirectory and there should be a cd command instead of OpenProject
- [ ] Fuzzy search over executed command ouput
- [ ] When inserting parenthesis and selection is there, put the parens on both sides?
- [ ] KillProcess in console !!! - should also kill all the children ...........
@@ -13,6 +14,10 @@
- [x] BRO, the caret teleports on linux when I press the arrow for too long
- [ ] Report SDL newest vs SDL previous version on wayland
- [ ] Ctrl+Shift+ArrowDown at the end of buffer, doesn't capture characters on last line without new line
- [ ] Remove -lbacktrace and add my backtrace library thing
- [ ] Refactor build.sh to accept commands and remove build_web.sh
- [ ] Cleanups
- [ ] How to enable framerate to be unlimited and not break scrolling?
- [x] When dragging a file into the editor, would be nice if the file opened in the window user dropped the file into. Not the active window.
@@ -91,6 +96,7 @@
#define PLUGIN_REMEDYBG OS_WINDOWS
#define PLUGIN_FILE_COMMANDS 1
#define PLUGIN_WORD_COMPLETE 1
#define PLUGIN_TESTS 1
#include "plugin_directory_navigation.h"
#include "plugin_search_window.h"
@@ -153,17 +159,16 @@ void SetMouseCursor(SDL_SystemCursor id) {
}
}
#else
SDL_Cursor *SDL_MouseCursor;
SDL_SystemCursor SDL_MouseCursorLastID;
void SetMouseCursor(SDL_SystemCursor id) {
static SDL_Cursor *SDL_MouseCursor;
static SDL_SystemCursor last_id;
if (SDL_MouseCursor == NULL || last_id != id) {
if (SDL_MouseCursor == NULL || SDL_MouseCursorLastID != id) {
if (SDL_MouseCursor != NULL) {
SDL_DestroyCursor(SDL_MouseCursor);
}
SDL_MouseCursor = SDL_CreateSystemCursor(id);
SDL_SetCursor(SDL_MouseCursor);
last_id = id;
SDL_MouseCursorLastID = id;
}
}
#endif
@@ -216,9 +221,6 @@ void SetMouseCursor(Event event) {
}
void CMD_QuitWithoutSaving() {
#if PLUGIN_REMEDYBG
QuitDebugger();
#endif
AppIsRunning = false;
} RegisterCommand(CMD_QuitWithoutSaving, "", "Self explanatory");
@@ -1136,6 +1138,12 @@ int main(int argc, char **argv, char **envp)
}
#endif
#if PLUGIN_REMEDYBG
QuitDebugger();
#endif
CleanupRender();
SDL_DestroyCursor(SDL_MouseCursor);
SDL_DestroyWindow(SDLWindow);
SDL_Quit();