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

wrap z4h-clear-screen-{soft,hard}-top

This commit is contained in:
Roman Perepelitsa 2020-11-01 18:23:10 +01:00
parent 5e2422df50
commit d7861fcfa0

View file

@ -7447,7 +7447,7 @@ function _p9k_widget_hook() {
eval "$__p9k_intro" eval "$__p9k_intro"
(( _p9k__restore_prompt_fd )) && _p9k_restore_prompt $_p9k__restore_prompt_fd (( _p9k__restore_prompt_fd )) && _p9k_restore_prompt $_p9k__restore_prompt_fd
if [[ $1 == clear-screen ]]; then if [[ $1 == (clear-screen|z4h-clear-screen-*-top) ]]; then
P9K_TTY=new P9K_TTY=new
_p9k__expanded=0 _p9k__expanded=0
_p9k_reset_prompt _p9k_reset_prompt
@ -7519,6 +7519,8 @@ function _p9k_wrap_widgets() {
visual-line-mode visual-line-mode
deactivate-region deactivate-region
clear-screen clear-screen
z4h-clear-screen-soft-top
z4h-clear-screen-hard-top
send-break send-break
$_POWERLEVEL9K_HOOK_WIDGETS $_POWERLEVEL9K_HOOK_WIDGETS
) )