diff options
author | tyama711 <tyama711@gmail.com> | 2023-04-02 23:26:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 23:26:13 +0900 |
commit | fb019d43bf17b264f45aba1f1b65cd5a39be0cff (patch) | |
tree | da10b2a100ffa16f6631ef7643bf230932c6b759 /src/core.go | |
parent | 025aa3377342135f527d728574e59db4cb781292 (diff) |
Fix a bug of height range with -1 or -0 (#3226)
Fixed a bug that when both heightUnknown and deferred are true, deferred is not properly reset and the program terminates abnormally.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'src/core.go')
-rw-r--r-- | src/core.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.go b/src/core.go index 0545c48c..a4751a55 100644 --- a/src/core.go +++ b/src/core.go @@ -219,6 +219,7 @@ func Run(opts *Options, version string, revision string) { determine := func(final bool) { if heightUnknown { if total >= maxFit || final { + deferred = false heightUnknown = false terminal.startChan <- fitpad{util.Min(total, maxFit), padHeight} } |