diff --git a/.gdb_history b/.gdb_history index d4b7082..e27f6b7 100644 --- a/.gdb_history +++ b/.gdb_history @@ -88,3 +88,44 @@ c c where frame 1 +where +b handle_input +c +n +p r +n +s +n +s +p next_page_cursor +p page_cursor +p do_turn +c +d 1 +c +where +wa page_cursor +wa page_cursor +c +l +where +l +l +where +where +l +where +p curdispline +c +p curdispline +c +p curdispline +c +p curdispline +c +c +p curdispline +p page_cursor +c +p page_cursor +c diff --git a/src/display.c b/src/display.c index 373866c..772e45a 100644 --- a/src/display.c +++ b/src/display.c @@ -265,9 +265,9 @@ static inline void display_command_field(){ waddstr(winput, rl_line_buffer); } -static inline void display_results(){ static long page_cursor = 0; /* signals where to output from */ static long next_page_cursor = 0; +static inline void display_results(){ int screenline; /* screen line number */ int srctxtw; /* source line display width */ int i; @@ -527,7 +527,7 @@ display(void) } if(window_change & CH_RESULT){ werase(wresult); - display_results(do_turn); + display_results(); } if(window_change & CH_MODE){ werase(wmode);