1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-28 14:40:06 +00:00

more precise mitigation for the resizing bug

This commit is contained in:
romkatv 2020-02-01 18:18:54 +01:00
parent c983ff6a41
commit b71a19c92e

View file

@ -1321,9 +1321,15 @@ There are a few mitigation options for this issue.
- Disable text reflowing on window resize in terminal settings. If your terminal doesn't have this - Disable text reflowing on window resize in terminal settings. If your terminal doesn't have this
setting, try a different terminal. setting, try a different terminal.
- Avoid long lines between the start of prompt and cursor. - Avoid long lines between the start of prompt and cursor.
1. Disable right prompt with `POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()`. 1. Disable ruler with `POWERLEVEL9K_SHOW_RULER=false`.
2. Disable ruler with `POWERLEVEL9K_SHOW_RULER=false`. 1. Disable prompt connection with `POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '`.
3. Disable prompt gap with `POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '`. 1. Disable right frame with `POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX=` and
`POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX=` and
`POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX=`.
1. Remove all elements from `POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS`. Right prompt on the last prompt
line will cause resizing issues only when the cursor is below it. This isn't very common, so
you might want to keep some elements in `POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS` provided that
none of them are succeeded by `newline`.
## Table of contents ## Table of contents