mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Show Readline prompt in input window
When doing an interactive search the prompt is needed to show the current state of the search to avoid confusion.
This commit is contained in:
parent
b00e74f3b8
commit
026522534b
@ -320,8 +320,15 @@ _inp_win_update_virtual(void)
|
||||
static void
|
||||
_inp_write(char* line, int offset)
|
||||
{
|
||||
int x;
|
||||
int y __attribute__((unused));
|
||||
int col = _inp_offset_to_col(line, offset);
|
||||
werase(inp_win);
|
||||
|
||||
waddstr(inp_win, rl_display_prompt);
|
||||
getyx(inp_win, y, x);
|
||||
col += x;
|
||||
|
||||
waddstr(inp_win, line);
|
||||
wmove(inp_win, 0, col);
|
||||
_inp_win_handle_scroll();
|
||||
|
Loading…
Reference in New Issue
Block a user