Changeset 16937
- Timestamp:
- 06/27/13 22:21:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Readline.cc
r16917 r16937 50 50 51 51 - <A HREF="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html">GNU Readline</A> 52 - <A HREF="http://www.rendezvousalpha.com/f/bash_d596c169?fn=1670">GNU Readline (src code)</A> 52 53 53 54 */ … … 59 60 #include <iostream> 60 61 62 #include <sys/ioctl.h> 61 63 #include <readline/readline.h> 62 64 #include <readline/history.h> … … 328 330 rl_on_new_line(); 329 331 330 if (rl_prompt==p) 331 { 332 Redisplay(); 332 if (rl_prompt==p && !newline) 333 333 return; 334 }335 334 336 335 UpdatePrompt(p); … … 387 386 { 388 387 rl_display_match_list(matches, num, max); 388 rl_forced_update_display(); 389 389 } 390 390 … … 574 574 break; 575 575 576 // It seems like history_search_pos works more like 577 // history_search_prefix, therefore the identity is checked again 578 const HIST_ENTRY *e = history_get(p+1); 579 if (e && str==e->line) 580 free(remove_history(p)); 576 HIST_ENTRY *e = remove_history(p--); 577 578 free(e->line); 579 free(e); 581 580 } 582 581 … … 1031 1030 fprintf(rl_outstream, " Ctrl-left One word backward\n"); 1032 1031 fprintf(rl_outstream, " Ctrl-right One word forward\n"); 1032 fprintf(rl_outstream, " Home Beginning of line\n"); 1033 fprintf(rl_outstream, " End End of line\n"); 1033 1034 fprintf(rl_outstream, " Ctrl-d Quit\n"); 1034 1035 fprintf(rl_outstream, " Ctrl-y Delete line\n");
Note:
See TracChangeset
for help on using the changeset viewer.