| File src/hstr.c changed (mode: 100644) (index 1e036fe..36252b1) |
| ... |
... |
void print_cmd_deleted_label(char *cmd, int occurences) |
| 112 |
112 |
// make this status row |
// make this status row |
| 113 |
113 |
void print_history_label(HistoryItems *history) |
void print_history_label(HistoryItems *history) |
| 114 |
114 |
{ |
{ |
| 115 |
|
sprintf(screenLine, "- HISTORY - case:%s (C-u) - order:%s (C-h) - %d/%d ", |
|
|
115 |
|
sprintf(screenLine, "- HISTORY - case:%s (C-t) - order:%s (C-h) - %d/%d ", |
| 116 |
116 |
(caseSensitive?"sensitive":"insensitive"), |
(caseSensitive?"sensitive":"insensitive"), |
| 117 |
117 |
(defaultOrder?"history":"ranking"), |
(defaultOrder?"history":"ranking"), |
| 118 |
118 |
history->count, |
history->count, |
| |
| ... |
... |
char *selection_loop(HistoryItems *history) |
| 387 |
387 |
} |
} |
| 388 |
388 |
print_history_label(history); |
print_history_label(history); |
| 389 |
389 |
break; |
break; |
| 390 |
|
case K_CTRL_U: |
|
|
390 |
|
case K_CTRL_T: |
| 391 |
391 |
caseSensitive=!caseSensitive; |
caseSensitive=!caseSensitive; |
| 392 |
392 |
result = print_selection(maxHistoryItems, prefix, history); |
result = print_selection(maxHistoryItems, prefix, history); |
| 393 |
393 |
print_history_label(history); |
print_history_label(history); |
| |
| ... |
... |
char *selection_loop(HistoryItems *history) |
| 405 |
405 |
print_history_label(history); |
print_history_label(history); |
| 406 |
406 |
move(y, basex+strlen(prefix)); |
move(y, basex+strlen(prefix)); |
| 407 |
407 |
break; |
break; |
|
408 |
|
case K_CTRL_U: |
|
409 |
|
prefix[0]=0; |
|
410 |
|
mvprintw(y, basex, ""); |
|
411 |
|
clrtoeol(); |
| 408 |
412 |
case KEY_BACKSPACE: |
case KEY_BACKSPACE: |
| 409 |
413 |
if(strlen(prefix)>0) { |
if(strlen(prefix)>0) { |
| 410 |
414 |
prefix[strlen(prefix)-1]=0; |
prefix[strlen(prefix)-1]=0; |