diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-29 17:29:24 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-29 17:29:24 +0900 |
| commit | 89e24bf8f27c56c273338a5e77a3377bb793101f (patch) | |
| tree | 7e2529699c803c19b9c817727a84ade855b3316a /src | |
| parent | 8d2fcd3518d3e2fdfa9f3e0a62004cf57f94108c (diff) | |
| download | fzf-89e24bf8f27c56c273338a5e77a3377bb793101f.tar.gz | |
Fix ineffective break statement
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/terminal.go b/src/terminal.go index 3175aaa3..cc47aa40 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1055,10 +1055,9 @@ func (t *Terminal) printPreview() { } return fillRet == tui.FillContinue }) - switch fillRet { - case tui.FillNextLine: + if fillRet == tui.FillNextLine { continue - case tui.FillSuspend: + } else if fillRet == tui.FillSuspend { break } t.pwindow.Fill("\n") |
