summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-02-01 18:03:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-02-01 18:13:00 +0900
commit3c0a6304756e890e0a605b742943a9bb8e1d2247 (patch)
treed834941731002d7a97fead6afe56732c8e454667
parent2a1e5a9729eb9c9240d632fb40ac97924f013a45 (diff)
0.46.10.46.1
-rwxr-xr-xinstall2
-rw-r--r--install.ps12
-rw-r--r--man/man1/fzf-tmux.12
-rw-r--r--man/man1/fzf.12
-rw-r--r--src/tui/tcell_test.go6
5 files changed, 8 insertions, 6 deletions
diff --git a/install b/install
index 3338bd22..5d031fd2 100755
--- a/install
+++ b/install
@@ -2,7 +2,7 @@
set -u
-version=0.46.0
+version=0.46.1
auto_completion=
key_bindings=
update_config=2
diff --git a/install.ps1 b/install.ps1
index 42e28ea3..526b8d4c 100644
--- a/install.ps1
+++ b/install.ps1
@@ -1,4 +1,4 @@
-$version="0.46.0"
+$version="0.46.1"
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
diff --git a/man/man1/fzf-tmux.1 b/man/man1/fzf-tmux.1
index 0b45c1d5..5aa0f5cf 100644
--- a/man/man1/fzf-tmux.1
+++ b/man/man1/fzf-tmux.1
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
-.TH fzf-tmux 1 "Jan 2024" "fzf 0.46.0" "fzf-tmux - open fzf in tmux split pane"
+.TH fzf-tmux 1 "Feb 2024" "fzf 0.46.1" "fzf-tmux - open fzf in tmux split pane"
.SH NAME
fzf-tmux - open fzf in tmux split pane
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index e40f3fbc..c10f334e 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
-.TH fzf 1 "Jan 2024" "fzf 0.46.0" "fzf - a command-line fuzzy finder"
+.TH fzf 1 "Feb 2024" "fzf 0.46.1" "fzf - a command-line fuzzy finder"
.SH NAME
fzf - a command-line fuzzy finder
diff --git a/src/tui/tcell_test.go b/src/tui/tcell_test.go
index 0d50bb76..0772a9e2 100644
--- a/src/tui/tcell_test.go
+++ b/src/tui/tcell_test.go
@@ -182,6 +182,7 @@ func TestGetCharEventKey(t *testing.T) {
r.Init()
// run and evaluate the tests
+ initialResizeAsInvalid := true
for _, test := range tests {
// generate key event
giveEvent := tcell.NewEventKey(test.giveKey.Type, test.giveKey.Char, test.giveKey.Mods)
@@ -191,8 +192,9 @@ func TestGetCharEventKey(t *testing.T) {
// process the event in fzf and evaluate the test
gotEvent := r.GetChar()
// skip Resize events, those are sometimes put in the buffer outside of this test
- for gotEvent.Type == Resize {
- t.Logf("Resize swallowed")
+ if initialResizeAsInvalid && gotEvent.Type == Invalid {
+ t.Logf("Resize as Invalid swallowed")
+ initialResizeAsInvalid = false
gotEvent = r.GetChar()
}
t.Logf("wantEvent = %T{Type: %v, Char: %q (%[3]v)}\n", test.wantKey, test.wantKey.Type, test.wantKey.Char)