Skip to content
Myr

Fix regression of prompt display

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 37585bd · Browse files · 1 file+6 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−4 removed

  • other:+6 added−4 removed

1 file+6 added−4 removed

modified:src/terminal.go+6 added-4 removed
1103 unmodified lines
1104 t.printPreview()1105}11061107func (t *Terminal) refresh() {1108 t.placeCursor()1109 if !t.suppress {1110 windows := make([]tui.Window, 0, 4)1111 if t.bordered {1112 windows = append(windows, t.border)
339 unmodified lines
1452 t.resizeWindows()1453 t.printPrompt()1454 t.printInfo()1455 t.printHeader()1455 t.placeCursor()1456 t.refresh()1457 t.mutex.Unlock()1458 go func() {1459 timer := time.NewTimer(t.initDelay)
162 unmodified lines
1622 case reqQuit:1623 exit(func() int { return exitInterrupt })1624 }1625 }1626 t.placeCursor()1626 t.refresh()1627 t.mutex.Unlock()1628 })1629 }
71 unmodified lines
1701 t.cancelPreview()1702 t.previewBox.Set(reqPreviewEnqueue, list)1703 }1704 }1706 req(reqList, reqInfo, reqHeader)1705 req(reqPrompt, reqList, reqInfo, reqHeader)1706 }1707 case actTogglePreviewWrap:1708 if t.hasPreviewWindow() {1709 t.preview.wrap = !t.preview.wrap
300 unmodified lines
2010 if q {2011 t.version++2012 }2013 }2015 t.eventBox.Set(EvtSearchNew, t.sort)2014 }20152016 if changed || t.cx != previousCx {2017 req(reqPrompt)2018 }20192020 t.mutex.Unlock() // Must be unlocked before touching reqBox20212022 if changed {2023 t.eventBox.Set(EvtSearchNew, t.sort)2024 }2025 for _, event := range events {2026 t.reqBox.Set(event, nil)2027 }2028 }
49 unmodified lines