Skip to content

Commit

Permalink
0.52.1
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed May 13, 2024
1 parent 4e9e842 commit 6432f00
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

0.52.1
------
- Fixed a critical bug in the Windows version
- Windows users are strongly encouraged to upgrade to this version

0.52.0
------
- Added `--highlight-line` to highlight the whole current line (à la `set cursorline` of Vim)
Expand Down
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -u

version=0.52.0
version=0.52.1
auto_completion=
key_bindings=
update_config=2
Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version="0.52.0"
$version="0.52.1"

$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition

Expand Down
2 changes: 1 addition & 1 deletion man/man1/fzf-tmux.1
Original file line number Diff line number Diff line change
Expand Up @@ -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 "May 2024" "fzf 0.52.0" "fzf-tmux - open fzf in tmux split pane"
.TH fzf-tmux 1 "May 2024" "fzf 0.52.1" "fzf-tmux - open fzf in tmux split pane"

.SH NAME
fzf-tmux - open fzf in tmux split pane
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -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 "May 2024" "fzf 0.52.0" "fzf - a command-line fuzzy finder"
.TH fzf 1 "May 2024" "fzf 0.52.1" "fzf - a command-line fuzzy finder"

.SH NAME
fzf - a command-line fuzzy finder
Expand Down
2 changes: 1 addition & 1 deletion plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function! s:shellesc_cmd(arg)
let e .= c
endfor
let e .= repeat('\', slashes) .'"'
return e
return substitute(substitute(e, '[&|<>()^!"]', '^&', 'g'), '%', '%%', 'g')
endfunction

function! fzf#shellescape(arg, ...)
Expand Down
7 changes: 6 additions & 1 deletion src/util/util_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
"sync/atomic"
"syscall"
Expand All @@ -20,6 +21,8 @@ const (
shellTypePowerShell
)

var escapeRegex = regexp.MustCompile(`[&|<>()^%!"]`)

type Executor struct {
shell string
shellType shellType
Expand Down Expand Up @@ -131,7 +134,9 @@ func escapeArg(s string) string {
b = append(b, '\\')
}
b = append(b, '"')
return string(b)
return escapeRegex.ReplaceAllStringFunc(string(b), func(match string) string {
return "^" + match
})
}

func (x *Executor) QuoteEntry(entry string) string {
Expand Down

0 comments on commit 6432f00

Please sign in to comment.