Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor position off by one; also weird errors when switching to another theme #269

Open
hsharrison opened this issue Sep 14, 2020 · 1 comment

Comments

@hsharrison
Copy link

I'm getting a weird issue, that the cursor position is off by one. The cursor appears one position behind where I expect it to be, hiding a letter and messing with my typing. I narrowed it down to the theme because in other themes it doesn't happen.

I feel like something is wrong with my install but I cleared everything and started over and it still happened. I also get these errors when switching from bobthefish to any other theme (until I delete functions/fish_prompt.fish:

fish: Unknown command: __bobthefish_glyphs
fish:
    __bobthefish_glyphs
    ^
in function '__fish_prompt_orig'
        called on line 47 of file -
in function 'fish_prompt'
in command substitution
fish: Unknown command: __bobthefish_colors
fish:
    __bobthefish_colors $theme_color_scheme
    ^
in function '__fish_prompt_orig'
        called on line 47 of file -
in function 'fish_prompt'
in command substitution
set_color: Expected argument for option b

~/.config/fish/functions/fish_prompt.fish (line 335):
    set_color -b $bg $fg $argv
    ^
in function '__bobthefish_start_segment'
        called on line 363 of file ~/.config/fish/functions/fish_prompt.fish
in function '__bobthefish_path_segment' with arguments '/home/user/src/somedir'
        called on line 959 of file ~/.config/fish/functions/fish_prompt.fish
in function '__bobthefish_prompt_git' with arguments '/home/user/src/somedir /home/user/src/somedir'
in function '__fish_prompt_orig'
        called on line 47 of file -
in function 'fish_prompt'
in command substitution

(Type 'help set_color' for related documentation)
set_color: Expected argument for option b

~/.config/fish/functions/fish_prompt.fish (line 379):
    set_color -b $segment_basename_color
    ^
in function '__bobthefish_path_segment' with arguments '/home/user/src/somedir'
        called on line 959 of file ~/.config/fish/functions/fish_prompt.fish
in function '__bobthefish_prompt_git' with arguments '/home/user/src/somedir /home/user/src/somedir'
in function '__fish_prompt_orig'
        called on line 47 of file -
in function 'fish_prompt'
in command substitution

(Type 'help set_color' for related documentation)
set_color: Expected argument for option b

~/.config/fish/functions/fish_prompt.fish (line 335):
    set_color -b $bg $fg $argv
    ^
in function '__bobthefish_start_segment'
        called on line 961 of file ~/.config/fish/functions/fish_prompt.fish
in function '__bobthefish_prompt_git' with arguments '/home/user/src/somedir /home/user/src/somedir'
in function '__fish_prompt_orig'
        called on line 47 of file -
in function 'fish_prompt'
in command substitution
@AndreTheHunter
Copy link

I'm having the same issue (#355). Does setting theme_nerd_fonts = no fix it for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants