diff --git a/src/main.c b/src/main.c index 1a061caf..43c08002 100644 --- a/src/main.c +++ b/src/main.c @@ -762,6 +762,8 @@ int main(int argc, char* argv[]) { replxx_enable_bracketed_paste(replxx); replxx_bind_key(replxx, '\\', backslash_replxx, NULL); replxx_set_modify_callback(replxx, modified_replxx, NULL); + replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('N'), "history_next"); + replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('P'), "history_previous"); while(true) { const char* ln = replxx_input(replxx, " ");