summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-08 02:29:31 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-08 02:29:31 +0900
commit9d545f9578b7cf154543bb645cb6da0f01801e5d (patch)
tree0620eb69e6de06df27cb8700322d2f16a0dd4aa9
parenta30999a78528b3c773b86ca5bd21a0220116c9de (diff)
downloadfzf-9d545f9578b7cf154543bb645cb6da0f01801e5d.tar.gz
Fix update of multi-select pointer
-rw-r--r--src/terminal.go9
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
}