zimfw / eriner

A Zim fork of the Powerline-inspired agnoster prompt theme.
MIT License
19 stars 14 forks source link

Visual prompt bug #3

Closed BrainMaestro closed 1 year ago

BrainMaestro commented 1 year ago

Prerequisites

Bug description

When used with zsh autosuggestions (triggered by hitting tab), the prompt incorrectly includes any text written before the suggestions which looks like

image

Steps to reproduce

  1. cd ${$(mktemp -d):A} && \
       ZDOTDIR=${PWD} HOME=${PWD} ZIM_HOME=${PWD}/.zim && \
       curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh && \
       exec zsh
  2. Add more steps here ... Add zmodule eriner to your .zimrc

  3. Type part of a command and hit tab for suggestions. The visual glitch with the prompt should be present

Current behavior

Prompt includes text type by the user that cannot be deleted Eriner-Bug

Expected behavior

Prompt should not include any direct user shell input

zimfw info

No response

Additional context

zsh 5.9 (x86_64-apple-darwin22.0) HEAD of zimfw and eriner (both cloned today 2023-09-09)

ericbn commented 1 year ago

Hi @BrainMaestro. This is not an uncommon issue and you might find other users asking the same questions elsewhere. Check https://github.com/zimfw/zimfw/issues/504, https://github.com/starship/starship/issues/4669 and https://stackoverflow.com/q/19305291/2654518

BrainMaestro commented 1 year ago

Oh thank you! I tried with other themes and it didn't exhibit the same behaviour, so I thought it originated from here. Thanks for the quick response. Setting the env variable fixed it