Skip to content

Commit

Permalink
fix(window.set_window_option): Remove .refresh()
Browse files Browse the repository at this point in the history
This causes builder to break
tmux-python/tmuxp#860
  • Loading branch information
tony committed Jan 7, 2023
1 parent b68d83e commit 7574a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ $ pip install --user --upgrade --pre libtmux

<!-- Maintainers and contributors: Insert change notes for the next release above -->

### Fixes

- `Window.set_window_option()`: Remove `.refresh()` (#467)

See also: https://github.com/tmux-python/tmuxp/issues/860

## libtmux 0.19.0 (2022-01-07)

### New features
Expand Down
3 changes: 0 additions & 3 deletions src/libtmux/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,6 @@ def set_window_option(self, option: str, value: t.Union[int, str]) -> "Window":
:exc:`exc.OptionError`, :exc:`exc.UnknownOption`,
:exc:`exc.InvalidOption`, :exc:`exc.AmbiguousOption`
"""

self.refresh()

if isinstance(value, bool) and value:
value = "on"
elif isinstance(value, bool) and not value:
Expand Down

0 comments on commit 7574a49

Please sign in to comment.