summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/tscreen.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/tscreen.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/tscreen.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/tscreen.go b/vendor/github.com/gdamore/tcell/v2/tscreen.go
index b804affd0..7ccbbebb8 100644
--- a/vendor/github.com/gdamore/tcell/v2/tscreen.go
+++ b/vendor/github.com/gdamore/tcell/v2/tscreen.go
@@ -1,4 +1,4 @@
-// Copyright 2023 The TCell Authors
+// Copyright 2024 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
@@ -715,7 +715,7 @@ func (t *tScreen) drawCell(x, y int) int {
return width
}
- if y == t.h-1 && x == t.w-1 && t.ti.AutoMargin && ti.InsertChar != "" {
+ if y == t.h-1 && x == t.w-1 && t.ti.AutoMargin && ti.DisableAutoMargin == "" && ti.InsertChar != "" {
// our solution is somewhat goofy.
// we write to the second to the last cell what we want in the last cell, then we
// insert a character at that 2nd to last position to shift the last column into
@@ -1826,6 +1826,7 @@ func (t *tScreen) engage() error {
t.TPuts(ti.EnterKeypad)
t.TPuts(ti.HideCursor)
t.TPuts(ti.EnableAcs)
+ t.TPuts(ti.DisableAutoMargin)
t.TPuts(ti.Clear)
t.wg.Add(2)
@@ -1867,6 +1868,7 @@ func (t *tScreen) disengage() {
t.TPuts(ti.Clear)
t.TPuts(ti.ExitCA)
t.TPuts(ti.ExitKeypad)
+ t.TPuts(ti.EnableAutoMargin)
t.enableMouse(0)
t.enablePasting(false)
t.disableFocusReporting()
@@ -1888,7 +1890,7 @@ func (t *tScreen) finalize() {
}
func (t *tScreen) StopQ() <-chan struct{} {
- return t.stopQ
+ return t.quit
}
func (t *tScreen) EventQ() chan Event {