diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index e981477..7fdaf40 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -86,6 +86,10 @@ function rationalize_dots { # Rationalize dots at BOL or after a space or slash. if [[ "$LBUFFER" =~ "(^|[ /])\.\./$" ]]; then LBUFFER+=../ + elif [[ "$LBUFFER" =~ "(^|[ /])\.\.$" ]]; then + # NOTE: This scenario occurs only if backspace or `default_dot` was + # used. + LBUFFER+=/../ elif [[ "$LBUFFER" =~ "(^|[ /])\.$" ]]; then LBUFFER+=./ else