commit 8300dd3c5e2c1b0ca2351fef49bff120f8a7ec1f from: Omar Polo date: Thu Mar 18 10:55:08 2021 UTC show the URL at point in the minibuffer commit - 63a715ea098b554716e212b9d83e10d273e17cb4 commit + 8300dd3c5e2c1b0ca2351fef49bff120f8a7ec1f blob - 3a14862f0dee3b80cab052158babeab933174db2 blob + 898b6b2a72e8ddb45fff505313112b087462e48d --- ui.c +++ ui.c @@ -1399,6 +1399,7 @@ static void redraw_minibuffer(void) { size_t skip = 0, off_x = 0, off_y = 0; + struct tab *tab; werase(minibuf); if (in_minibuffer) { @@ -1429,6 +1430,15 @@ redraw_minibuffer(void) if (!in_minibuffer && ministate.curmesg == NULL) wprintw(minibuf, "%s", keybuf); + + /* If nothing else, show the URL at point */ + if (!in_minibuffer && ministate.curmesg == NULL && *keybuf == '\0') { + tab = current_tab(); + if (tab->s.current_line != NULL && + tab->s.current_line->parent->type == LINE_LINK) + wprintw(minibuf, "%s", + tab->s.current_line->parent->alt); + } if (in_minibuffer) wmove(minibuf, 0, off_x + ministate.off - skip);