summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-09-12 11:37:55 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-09-12 11:37:55 +0900
commit64443221aab288a3069d01cdaf86706c6c1d91f3 (patch)
tree0520ba323fd6be1421d35a8a94b9b5cd42a74189 /src/core.go
parent9017e297417bc20c89e1e7c9ce47f1c2fbbfd5fc (diff)
Fix #344 - Backward scan when `--tiebreak=end`
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index 4f072151..96bfdd4c 100644
--- a/src/core.go
+++ b/src/core.go
@@ -143,7 +143,8 @@ func Run(opts *Options) {
// Matcher
patternBuilder := func(runes []rune) *Pattern {
return BuildPattern(
- opts.Mode, opts.Case, opts.Nth, opts.Delimiter, runes)
+ opts.Mode, opts.Case, opts.Tiebreak != byEnd,
+ opts.Nth, opts.Delimiter, runes)
}
matcher := NewMatcher(patternBuilder, sort, opts.Tac, eventBox)