Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dot_config/zsh/split/functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ _fzf_cd_ghq() {

local dir="$root/$repo"
if [[ -d "$dir" ]]; then
# Clear buffer completely before setting new command
BUFFER=""
BUFFER="cd \"$dir\""
zle accept-line
# Execute cd directly instead of through BUFFER
# This avoids issues with stray input being left in the zle buffer
cd "$dir"
zle reset-prompt
else
BUFFER="$orig_buffer"
CURSOR="$orig_cursor"
Expand Down