Skip to content

Commit

Permalink
fix: mouse clicks with hidden parts
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed May 25, 2024
1 parent 07b4353 commit eefaa16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-dev-workspace.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ layout {
plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" {
format_left "{mode}#[fg=#89B4FA,bg=#181825,bold] {session} {tabs}"
format_center "{command_0} {command_1} {command_git_branch} {command_3}"
format_right "{notifications}{swap_layout}{datetime}"
format_right "{tabs}{notifications}{swap_layout}{datetime}"
format_space "#[bg=#181825]"
format_precedence "lcr"
format_precedence "lrc"

notification_format_unread "#[fg=#89B4FA,bg=#181825,blink]  #[fg=#89B4FA,bg=#181825] {message} "
notification_format_no_notifications "#[fg=#89B4FA,bg=#181825,dim]  "
Expand Down
3 changes: 3 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ impl ModuleConfig {
)
});

let (output_left, output_center, output_right) =
self.trim_output(&output_left, &output_center, &output_right, state.cols);

if !output_center.is_empty() {
offset += console::measure_text_width(&self.get_spacer_left(
&output_left,
Expand Down

0 comments on commit eefaa16

Please sign in to comment.