mirror of
https://github.com/zoriya/ash.git
synced 2026-06-08 12:32:14 +00:00
Handling scroll on autocompletion
This commit is contained in:
@@ -40,6 +40,7 @@ void print_results(my_window *window, unsigned count, char **results)
|
||||
printf("%-*s", size, results[i + j] + prefix_length);
|
||||
putchar('\n');
|
||||
}
|
||||
window->y -= MAX(0, (window->y + 2 + ((int)count / per_line) + 1 - window->h));
|
||||
}
|
||||
|
||||
void buffer_replace(buffer_t *buffer, char *to_replace, int start, int end)
|
||||
|
||||
Reference in New Issue
Block a user