Sneaked in a few last minute bug fixes for table mode.
This commit is contained in:
1 parent
2c893dccb9
commit
a27f274099
12 files changed
+747
-25
No files matched your search
@@ -41,6 +41,9 @@ type Review struct {
|
||||
tableMode bool
|
||||
tableColumn int
|
||||
tableHeaders []string
|
||||
tableLayout tableLayout
|
||||
tableManual bool
|
||||
tableAutoDisabled bool
|
||||
}
|
||||
|
||||
func (r *Review) Configure(lineBreak, endOfScreen, leaveOnScreenChange bool) {
|
||||
@@ -99,6 +102,8 @@ func (r *Review) Update(next screen.Snapshot) bool {
|
||||
if switched {
|
||||
r.Clear_marks()
|
||||
r.tableHeaders = nil
|
||||
r.tableLayout = tableLayout{}
|
||||
r.tableManual, r.tableAutoDisabled = false, false
|
||||
r.tableColumn = 0
|
||||
}
|
||||
if !next.Active {
|
||||
@@ -143,6 +148,9 @@ func (r *Review) execute(id command.ID) string {
|
||||
case command.AttributeCursor, command.CursorLine, command.CursorColumn, command.LineToCursor, command.LineFromCursor, command.FollowCursor:
|
||||
// Reports use the active cursor without entering detached review.
|
||||
default:
|
||||
if !r.reviewing {
|
||||
r.start_table_review()
|
||||
}
|
||||
r.reviewing = true
|
||||
}
|
||||
if r.tableMode {
|
||||
|
||||
Reference in new issue
Block a user