commit 8a69311205582739c117b2f78a3b8c7e9f7414a8
parent be582030e74da2163b17147449921520ab4e0dd1
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Sat, 22 May 2021 11:15:26 +0200
discard Pad for oauth href
Rendering the href for oauth on a Pad does not solve the problem of the
non clickable link in the terminal emulator. Even though, the pad can
hold the full link in a single line and we increase the Pad width to
inf or 9999, the clickable part of the link will only go as far as the
max width of the window. Tested with Konsole.
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/caldav.c b/caldav.c
@@ -252,10 +252,7 @@ char* get_oauth_code(const char* verifier, WINDOW* header) {
// Show the Google OAuth2 authorization URI in the header
wclear(header);
- int col;
- col = getmaxx(header);
- wresize(header, LINES, col);
- // todo: make it a pad for the long link to be clickable?
+ wresize(header, LINES, getmaxx(header));
mvwprintw(header, 0, 0, "Go to Google OAuth2 authorization URI. Use 'q' or 'Ctrl+c' to quit authorization process.\n%s", uri);
wrefresh(header);