From 0edbcbdf1909a6d3c56ae264362f11bc2bf9f65d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 25 Jun 2018 19:07:12 +0900 Subject: 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 --- src/constants.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/constants.go') 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 -- cgit v1.2.3