diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-30 02:06:54 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-30 02:07:09 +0900 |
| commit | 07d755df11b7f507662e2cc4b73703eee0923f48 (patch) | |
| tree | eb29cc7003d31dc677af9d6c503d303e0ff925ea /src | |
| parent | 37585bd5a5807378459ba9ea580cd617d17a402e (diff) | |
| download | fzf-07d755df11b7f507662e2cc4b73703eee0923f48.tar.gz | |
Fix regression of prompt display
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/terminal.go b/src/terminal.go index b4ec69e2..06623b28 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1105,6 +1105,7 @@ func (t *Terminal) printAll() { } func (t *Terminal) refresh() { + t.placeCursor() if !t.suppress { windows := make([]tui.Window, 0, 4) if t.bordered { @@ -1452,7 +1453,6 @@ func (t *Terminal) Loop() { t.printPrompt() t.printInfo() t.printHeader() - t.placeCursor() t.refresh() t.mutex.Unlock() go func() { @@ -1623,7 +1623,6 @@ func (t *Terminal) Loop() { exit(func() int { return exitInterrupt }) } } - t.placeCursor() t.refresh() t.mutex.Unlock() }) @@ -1703,7 +1702,7 @@ func (t *Terminal) Loop() { t.previewBox.Set(reqPreviewEnqueue, list) } } - req(reqList, reqInfo, reqHeader) + req(reqPrompt, reqList, reqInfo, reqHeader) } case actTogglePreviewWrap: if t.hasPreviewWindow() { @@ -2012,7 +2011,6 @@ func (t *Terminal) Loop() { t.version++ } } - t.eventBox.Set(EvtSearchNew, t.sort) } if changed || t.cx != previousCx { @@ -2020,6 +2018,10 @@ func (t *Terminal) Loop() { } t.mutex.Unlock() // Must be unlocked before touching reqBox + + if changed { + t.eventBox.Set(EvtSearchNew, t.sort) + } for _, event := range events { t.reqBox.Set(event, nil) } |
