File src/hstr.c changed (mode: 100644) (index f3db5e8..b0c3fbb) |
... |
... |
void print_highlighted_selection_row(char *text, int y, int width) |
319 |
319 |
|
|
320 |
320 |
char *print_selection(unsigned maxHistoryItems, char *prefix, HistoryItems *history) |
char *print_selection(unsigned maxHistoryItems, char *prefix, HistoryItems *history) |
321 |
321 |
{ |
{ |
322 |
|
char *result; |
|
|
322 |
|
char *result=NULL; |
323 |
323 |
unsigned selectionCount=make_selection(prefix, history, maxHistoryItems); |
unsigned selectionCount=make_selection(prefix, history, maxHistoryItems); |
324 |
324 |
if (selectionCount > 0) { |
if (selectionCount > 0) { |
325 |
325 |
result=selection[0]; |
result=selection[0]; |
326 |
|
} else { |
|
327 |
|
result=""; |
|
328 |
326 |
} |
} |
329 |
327 |
|
|
330 |
328 |
int height=get_max_history_items(stdscr); |
int height=get_max_history_items(stdscr); |