From cf83e95114eafc1fc357c68cfedc661482992ac1 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 17 Feb 2020 11:57:29 -0500 Subject: Only scroll after reflow if necessary If we've already filled up every line of the window, there is no need to scroll. --- ui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 938eda6..84a0d9c 100644 --- a/ui.c +++ b/ui.c @@ -634,8 +634,10 @@ static void reflow(struct Window *window) { } flowed += lines; } - wscrl(window->pad, -(WindowLines - 1 - flowed)); - wmove(window->pad, WindowLines - 1, RIGHT); + if (flowed < WindowLines) { + wscrl(window->pad, -(WindowLines - 1 - flowed)); + wmove(window->pad, WindowLines - 1, RIGHT); + } } static void resize(void) { -- cgit 1.4.1 ter libtls for OpenSSL
summary refs log tree commit diff
path: root/man/tls_conn_version.3 (unfollow)
Commit message (Expand)Author
2021-05-25import: Add missing scripts/wrap-compiler-for-flag-checkJune McEnroe
2021-05-08Import LibreSSL 3.3.3June McEnroe
2021-04-18build: Remove added x509_verify.3 links 3.3.2June McEnroe
2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe
2021-04-18Import LibreSSL 3.3.2June McEnroe
2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe
2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe
2020-12-15Import LibreSSL 3.3.1June McEnroe
2020-11-24Import LibreSSL 3.3.0June McEnroe
2020-10-22Import LibreSSL 3.2.2June McEnroe
2020-09-29Import LibreSSL 3.2.1June McEnroe
2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe
2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe
2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe