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: ensure importlib.util is imported correctly #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion autoload/health/magma.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function! s:python_has_module(module) abort
python3 import importlib
python3 import importlib.util
return py3eval("importlib.util.find_spec(vim.eval('a:module')) is not None")
endfunction

Expand Down
4 changes: 1 addition & 3 deletions rplugin/python3/magma/outputbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def show(self, anchor: Position) -> None: # XXX .show_outputs(_, anchor)
"width": win_width,
"height": min(win_height - win_row, lineno + 1),
"anchor": "NW",
"style": None
if self.options.output_window_borders
else "minimal",
"style": "minimal",
"border": "rounded"
if self.options.output_window_borders
else "none",
Expand Down