From 8eb293f14dc000120a6b515a266ab86359ec5e7d Mon Sep 17 00:00:00 2001 From: Todd Morse Date: Sat, 23 Sep 2023 15:28:36 -0400 Subject: [PATCH] fix issue with style argument for outputs --- rplugin/python3/magma/outputbuffer.py | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/rplugin/python3/magma/outputbuffer.py b/rplugin/python3/magma/outputbuffer.py index db26272..3739459 100644 --- a/rplugin/python3/magma/outputbuffer.py +++ b/rplugin/python3/magma/outputbuffer.py @@ -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