diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-08 02:29:31 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-08 02:29:31 +0900 |
| commit | 9d545f9578b7cf154543bb645cb6da0f01801e5d (patch) | |
| tree | 0620eb69e6de06df27cb8700322d2f16a0dd4aa9 | |
| parent | a30999a78528b3c773b86ca5bd21a0220116c9de (diff) | |
| download | fzf-9d545f9578b7cf154543bb645cb6da0f01801e5d.tar.gz | |
Fix update of multi-select pointer
| -rw-r--r-- | src/terminal.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/terminal.go b/src/terminal.go index 80029236..c6533276 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -41,9 +41,10 @@ type previewer struct { } type itemLine struct { - current bool - label string - result Result + current bool + selected bool + label string + result Result } var emptyLine = itemLine{} @@ -663,7 +664,7 @@ func (t *Terminal) printItem(result *Result, line int, i int, current bool) { } // Avoid unnecessary redraw - newLine := itemLine{current, label, *result} + newLine := itemLine{current, selected, label, *result} if t.prevLines[i] == newLine { return } |
