summaryrefslogtreecommitdiffstats
path: root/src/constants.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2018-06-25 19:07:12 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2018-06-25 19:07:47 +0900
commit0edbcbdf1909a6d3c56ae264362f11bc2bf9f65d (patch)
tree168e677c7cd80a1d9fc08fdbae8f14c165ba797f /src/constants.go
parentf0fe79dd3bb4b782ad6040c970b4bfc818729f05 (diff)
Allow search query longer than the screen width
By implementing horizontal scrolling of the prompt line. Maximum length is hard-coded to 300-chars. Close #1312 Fix #1225
Diffstat (limited to 'src/constants.go')
-rw-r--r--src/constants.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/constants.go b/src/constants.go
index b501a2aa..a8e20910 100644
--- a/src/constants.go
+++ b/src/constants.go
@@ -22,9 +22,10 @@ const (
readerPollIntervalMax = 50 * time.Millisecond
// Terminal
- initialDelay = 20 * time.Millisecond
- initialDelayTac = 100 * time.Millisecond
- spinnerDuration = 200 * time.Millisecond
+ initialDelay = 20 * time.Millisecond
+ initialDelayTac = 100 * time.Millisecond
+ spinnerDuration = 200 * time.Millisecond
+ maxPatternLength = 300
// Matcher
numPartitionsMultiplier = 8