From c6587e592d08fc47117b7448491204c775783e4b Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Sat, 17 Dec 2022 22:28:58 +0100 Subject: split: use a sensible default width Guessing a width/height with v?split is rather bothersome, using a sensible value based on the user's terminal would be preferable. This also prevents confusion when running :v?split without a number seemingly does not open a split. Initialize width as half the width of the message list and height as an eight of the message list. Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d505bcf..3a42fa52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `pgp-provider` now defaults to `auto`. It will use the system `gpg` unless the internal keyring exists and contains at least one key. +- calling `:split` or `:vsplit` without specifying a size, now attempts to use + the terminal size to determine a useful split-size. ### Fixed -- cgit