Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with style argument for outputs #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions rplugin/python3/magma/outputbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,24 @@ def show(self, anchor: Position) -> None: # XXX .show_outputs(_, anchor)
# Open output window
assert self.display_window is None
if win_row < win_height:
opts = {
"relative": "win",
"col": 0,
"row": win_row,
"width": win_width,
"height": min(win_height - win_row, lineno + 1),
"anchor": "NW",
"border": "rounded",
"focusable": False,
}
if not self.options.output_window_borders:
opts["style"] = "minimal"
opts["border"] = "none"

self.display_window = self.nvim.funcs.nvim_open_win(
self.display_buffer.number,
False,
{
"relative": "win",
"col": 0,
"row": win_row,
"width": win_width,
"height": min(win_height - win_row, lineno + 1),
"anchor": "NW",
"style": None
if self.options.output_window_borders
else "minimal",
"border": "rounded"
if self.options.output_window_borders
else "none",
"focusable": False,
},
opts,
)
# self.nvim.funcs.nvim_win_set_option(
# self.display_window, "wrap", True
Expand Down