Skip to content

Commit

Permalink
command: Fix replace to be able to insert '$'
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar committed Oct 6, 2023
1 parent 1231d24 commit 0e9611c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ func (h *BufPane) ReplaceCmd(args []string) {
if noRegex {
search = regexp.QuoteMeta(search)
}
replaceStr = strings.ReplaceAll(replaceStr, "$", "$$")

replace := []byte(replaceStr)

Expand Down

0 comments on commit 0e9611c

Please sign in to comment.