Remove backslash escaping on zsh and fish
This commit is contained in:
parent
e3bf63e55c
commit
9edee8ad11
|
@ -13,6 +13,7 @@ class BashPromptRenderer(ShellRenderer):
|
|||
character_translations = ShellRenderer.character_translations.copy()
|
||||
character_translations[ord('$')] = '\\$'
|
||||
character_translations[ord('`')] = '\\`'
|
||||
character_translations[ord('\\')] = '\\\\'
|
||||
|
||||
|
||||
renderer = BashPromptRenderer
|
||||
|
|
|
@ -22,7 +22,6 @@ class ShellRenderer(Renderer):
|
|||
screen_escape = False
|
||||
|
||||
character_translations = Renderer.character_translations.copy()
|
||||
character_translations[ord('\\')] = '\\\\'
|
||||
|
||||
def hlstyle(self, fg=None, bg=None, attr=None):
|
||||
'''Highlight a segment.
|
||||
|
|
Loading…
Reference in New Issue