| File src/hstr.c changed (mode: 100644) (index 9ea2153..eb5183c) |
| ... |
... |
static const char *HH_MATCH_LABELS[]={ |
| 116 |
116 |
}; |
}; |
| 117 |
117 |
|
|
| 118 |
118 |
static const char *HH_CASE_LABELS[]={ |
static const char *HH_CASE_LABELS[]={ |
| 119 |
|
"sensitive", |
|
| 120 |
|
"insensitive" |
|
|
119 |
|
"insensitive", |
|
120 |
|
"sensitive" |
| 121 |
121 |
}; |
}; |
| 122 |
122 |
|
|
| 123 |
123 |
static const char *INSTALL_STRING= |
static const char *INSTALL_STRING= |
| |
| ... |
... |
void loop_to_select(Hstr *hstr) |
| 692 |
692 |
case K_CTRL_E: |
case K_CTRL_E: |
| 693 |
693 |
hstr->historyMatch++; |
hstr->historyMatch++; |
| 694 |
694 |
hstr->historyMatch=hstr->historyMatch%2; |
hstr->historyMatch=hstr->historyMatch%2; |
|
695 |
|
// TODO make this a function |
| 695 |
696 |
result=hstr_print_selection(maxHistoryItems, pattern, hstr); |
result=hstr_print_selection(maxHistoryItems, pattern, hstr); |
| 696 |
697 |
print_history_label(hstr); |
print_history_label(hstr); |
| 697 |
698 |
selectionCursorPosition=0; |
selectionCursorPosition=0; |
|
699 |
|
if(strlen(pattern)<(width-basex-1)) { |
|
700 |
|
print_prefix(pattern, y, basex); |
|
701 |
|
cursorX=getcurx(stdscr); |
|
702 |
|
cursorY=getcury(stdscr); |
|
703 |
|
} |
| 698 |
704 |
break; |
break; |
| 699 |
705 |
case K_CTRL_T: |
case K_CTRL_T: |
| 700 |
706 |
hstr->caseSensitive=!hstr->caseSensitive; |
hstr->caseSensitive=!hstr->caseSensitive; |
| |
| ... |
... |
void loop_to_select(Hstr *hstr) |
| 702 |
708 |
result=hstr_print_selection(maxHistoryItems, pattern, hstr); |
result=hstr_print_selection(maxHistoryItems, pattern, hstr); |
| 703 |
709 |
print_history_label(hstr); |
print_history_label(hstr); |
| 704 |
710 |
selectionCursorPosition=0; |
selectionCursorPosition=0; |
|
711 |
|
if(strlen(pattern)<(width-basex-1)) { |
|
712 |
|
print_prefix(pattern, y, basex); |
|
713 |
|
cursorX=getcurx(stdscr); |
|
714 |
|
cursorY=getcury(stdscr); |
|
715 |
|
} |
| 705 |
716 |
break; |
break; |
| 706 |
717 |
case K_CTRL_SLASH: |
case K_CTRL_SLASH: |
| 707 |
718 |
hstr_next_view(hstr); |
hstr_next_view(hstr); |