--- lbbs/src/editor.c 2025/11/10 07:23:16 1.58 +++ lbbs/src/editor.c 2025/12/17 03:47:00 1.61 @@ -6,6 +6,10 @@ * Copyright (C) 2004-2025 Leaflet */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "bbs.h" #include "common.h" #include "editor.h" @@ -23,7 +27,6 @@ enum _editor_constant_t { EDITOR_MEM_POOL_LINE_PER_CHUNK = 1000, EDITOR_MEM_POOL_CHUNK_LIMIT = (MAX_EDITOR_DATA_LINES / EDITOR_MEM_POOL_LINE_PER_CHUNK + 1), - TAB_SIZE = 4, }; static const char EDITOR_ESC_DISPLAY_STR[] = "\033[32m*\033[m"; @@ -971,7 +974,9 @@ int editor_display(EDITOR_DATA *p_editor switch (ch) { case KEY_NULL: +#ifdef _DEBUG log_error("KEY_NULL\n"); +#endif goto cleanup; case KEY_TIMEOUT: log_error("User input timeout\n");