oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.46k stars 226 forks source link

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

Open hsharrison opened 4 years ago

hsharrison commented 4 years ago

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 commented 10 months ago

I'm having the same issue (https://github.com/oh-my-fish/theme-bobthefish/issues/355). Does setting theme_nerd_fonts = no fix it for you?