6 Commits
Author SHA1 Message Date
Cyrus f7ae439ff5 Pin $SHELL to cmd in TestQuoteEntry and TestReplacePlaceholder 2026-08-26 09:06:03 +09:00
Cyrus bd4efa277b Use the platform quote placeholder for {fzf:prompt}
Every other entry in this table goes through {{.O}}; this one had the
POSIX single quotes written in, so it could only pass off Windows.
2026-08-14 19:16:31 +09:00
Cyrus 63f6cfec5b Split the doubled and plain backslash cases in the quoting test
escapeArg only doubles a backslash that precedes a quote or ends the
argument, the same rule as syscall.EscapeArg, and @ is not a cmd
metacharacter so it is not caret-escaped. The Windows expectations here
still asked for both. Checked by round-tripping each entry through
cmd.exe into a program's argv: all ten come back byte for byte.
2026-08-14 19:16:31 +09:00
Cyrus d4b6ba781c Match the current temp file name in the powershell {f} test
The template writes to os.CreateTemp("", "fzf-temp-*"); the fzf-preview-
prefix went away with the --tmux work. The digit count was also pinned at
nine, but CreateTemp's suffix has no fixed width.
2026-08-14 19:16:31 +09:00
Cyrus 85a2a33612 Close the temp ttyout file in the SGR deduplication test
The file is opened under t.TempDir() and never closed, so the cleanup
that TempDir registers cannot remove it on Windows, where an open file
cannot be unlinked. The test itself passes; it is the cleanup that fails
the run. history_test.go and options_test.go already close theirs.
2026-08-14 19:16:30 +09:00
Cyrus 6e65d867dc Detect terminal resize on Windows (fix #4790)
Windows has no SIGWINCH and notifyOnResize was an empty TODO, so fzf
running in --height mode never noticed console size changes. Poll the
console screen buffer dimensions every 100ms and push a signal through
the same channel SIGWINCH uses on Unix. Full-screen mode is unaffected
as it goes through tcell which emits its own resize events.
2026-07-19 23:53:02 +08:00