Skip to content

Commit

Permalink
fixup! fix: crash when current file contains "()" characters in its p…
Browse files Browse the repository at this point in the history
…ath/name
  • Loading branch information
mikavilpas committed May 18, 2024
1 parent ca914e0 commit 3dd8fd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
3 changes: 1 addition & 2 deletions lua/yazi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local utils = require('yazi.utils')
local vimfn = require('yazi.vimfn')
local configModule = require('yazi.config')
local event_handling = require('yazi.event_handling')
local path_utils = require('yazi.utils.path')
local Log = require('yazi.log')

local M = {}
Expand Down Expand Up @@ -35,7 +34,7 @@ function M.yazi(config, path)
os.remove(config.chosen_file_path)
local cmd = string.format(
'yazi %s --local-events "rename,delete,trash,move" --chooser-file "%s" > "%s"',
path_utils.escape_path_for_cmd(path),
vim.fn.shellescape(path),
config.chosen_file_path,
config.events_file_path
)
Expand Down
54 changes: 0 additions & 54 deletions lua/yazi/utils/path.lua

This file was deleted.

0 comments on commit 3dd8fd4

Please sign in to comment.