From 78e6031e94284589754917e25a99242712416483 Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 5 Aug 2023 14:09:42 +0200 Subject: [PATCH] ayyy --- .gdb_history | 18 ++++++++++++++++++ TODO | 21 +++++++++------------ src/main.c | 16 ++++------------ src/readline.c | 2 ++ 4 files changed, 33 insertions(+), 24 deletions(-) diff --git a/.gdb_history b/.gdb_history index cd3fce7..ff11a92 100644 --- a/.gdb_history +++ b/.gdb_history @@ -28,3 +28,21 @@ l b rl_complete c where +c +where +l +frame 0 +l +info handle +handle SIGINT pass +n +c +l +l screenmode_event_loop +b handle_input +c +n +n +b siginit +r +n diff --git a/TODO b/TODO index cf0068a..aa2e45f 100644 --- a/TODO +++ b/TODO @@ -1,14 +1,11 @@ # BUGS -+ Changing text double frees: - free(): double free detected in tcache 2 - Aborted -+ Normalize tabs and spaces -+ Ordering function declarations in global.h by alpha order is not smart -+ Handle unused parameters gracefully (#define UNUSED(x) (void)(x)) -+ Figure out what the deal is with changestring() -+ scollbar() uses int literals? -+ ctrl+d segfaults -+ tab scrolls the results + + Changing text double frees: + free(): double free detected in tcache 2 + Aborted + + Ordering function declarations in global.h by alpha order is not smart + + Handle unused parameters gracefully (#define UNUSED(x) (void)(x)) + + scrollbar() uses int literals? + + tab scrolls the results -+ recursive macro function to assign KEY_* default values; look for a new and shiny preprocessor? -+ rename to Csoap +# Misc + + recursive macro function to assign KEY_* default values; look for a new and shiny preprocessor? diff --git a/src/main.c b/src/main.c index 151c023..34e4e3c 100644 --- a/src/main.c +++ b/src/main.c @@ -124,9 +124,9 @@ void siginit(void){ /* if running in the foreground */ if (signal(SIGINT, SIG_IGN) != SIG_IGN) { - /* cleanup on the interrupt and quit signals */ - signal(SIGINT, myexit); - signal(SIGQUIT, myexit); + /* cleanup on the interrupt and quit signals */ + signal(SIGINT, myexit); + signal(SIGQUIT, myexit); } /* cleanup on the hangup signal */ signal(SIGHUP, myexit); @@ -141,15 +141,7 @@ siginit(void){ signal(SIGPIPE, SIG_IGN); if (linemode == false) { - signal(SIGINT, SIG_IGN); /* ignore interrupts */ -#if defined(KEY_RESIZE) && !defined(__DJGPP__) - struct sigaction winch_action; - - winch_action.sa_sigaction = sigwinch_handler; - sigemptyset(&winch_action.sa_mask); - winch_action.sa_flags = SA_SIGINFO; - sigaction(SIGWINCH,&winch_action,NULL); -#endif + signal(SIGWINCH, sigwinch_handler); } } diff --git a/src/readline.c b/src/readline.c index e6ce6a5..fd498d2 100644 --- a/src/readline.c +++ b/src/readline.c @@ -118,6 +118,8 @@ static int process_mouse(){ resetcmd(); return(false); } + + return false; } void rlinit(){