diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-11-09 22:38:28 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-11-09 22:38:28 +0100 |
| commit | c39f8bdbef0cd17f4b864bbea2398f2b0f099c18 (patch) | |
| tree | 07812f7608b8b22b88481b1f1489d42af690b11c /src | |
| parent | aac3b99f5026d299dae83cfdab2227074369e916 (diff) | |
Curses: fixed positioning of auto completion popups above the command line
This was broken if you configured a command line with a height > 1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/interface-curses/curses-info-popup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface-curses/curses-info-popup.c b/src/interface-curses/curses-info-popup.c index e53f6ef..124453f 100644 --- a/src/interface-curses/curses-info-popup.c +++ b/src/interface-curses/curses-info-popup.c @@ -26,6 +26,7 @@ #include "list.h" #include "string-utils.h" #include "interface.h" +#include "cmdline.h" #include "curses-utils.h" #include "curses-info-popup.h" #include "curses-icons.h" @@ -170,7 +171,7 @@ teco_curses_info_popup_show(teco_curses_info_popup_t *ctx, attr_t attr) gint popup_lines = MIN(pad_lines + 1, LINES - 1); /* window covers message, scintilla and info windows */ - ctx->window = newwin(popup_lines, 0, LINES - 1 - popup_lines, 0); + ctx->window = newwin(popup_lines, 0, LINES - teco_cmdline.height - popup_lines, 0); wattrset(ctx->window, attr); |
