summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-11-01 20:23:10 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-11-01 20:23:10 +0300
commitd7861fcfa0fa489ecff59e7966c372d5ed9720c4 (patch)
tree8888792869f18a6d4fef2edf1a25389441704756 /internal
parent5e2422df50e196d545f5b36ac6533a18326358b5 (diff)
wrap z4h-clear-screen-{soft,hard}-top
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 629d3881..dfa4126b 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -7447,7 +7447,7 @@ function _p9k_widget_hook() {
eval "$__p9k_intro"
(( _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__expanded=0
_p9k_reset_prompt
@@ -7519,6 +7519,8 @@ function _p9k_wrap_widgets() {
visual-line-mode
deactivate-region
clear-screen
+ z4h-clear-screen-soft-top
+ z4h-clear-screen-hard-top
send-break
$_POWERLEVEL9K_HOOK_WIDGETS
)