Restore reading backspace if typing with autoread disabled.
This commit is contained in:
1 parent
eaf450587c
commit
57799cd2eb
6 files changed
+295
-6
No files matched your search
@@ -149,11 +149,20 @@ func (r *Reader) Update(next screen.Snapshot) (output []presentation.Message) {
|
||||
path = "typing-echo"
|
||||
return echo
|
||||
}
|
||||
deleted := r.match_deletion(previous, next)
|
||||
if r.progressEnabled {
|
||||
r.progress.Update(regions.progress_snapshot(previous), regions.progress_snapshot(next), r.progress_deletion_row(previous, next))
|
||||
deletionRow := -1
|
||||
if len(deleted) > 0 {
|
||||
deletionRow = next.Y
|
||||
}
|
||||
r.progress.Update(regions.progress_snapshot(previous), regions.progress_snapshot(next), deletionRow)
|
||||
}
|
||||
if !r.automatic {
|
||||
path = "automatic-disabled"
|
||||
if len(deleted) > 0 {
|
||||
path = "deletion-echo"
|
||||
return r.deletion_echo(deleted, next)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
readingPrevious := regions.filtered_snapshot(previous, true, true)
|
||||
@@ -171,6 +180,7 @@ func (r *Reader) Update(next screen.Snapshot) (output []presentation.Message) {
|
||||
// presentation state for callers to retrieve after dispatch.
|
||||
func (r *Reader) Command(id command.ID) presentation.CommandResult {
|
||||
r.applicationInputAt = time.Time{}
|
||||
r.progressDeletionAt = time.Time{}
|
||||
if result, handled := r.region_command(id); handled {
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user