We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8637180 commit 4ccf6b3Copy full SHA for 4ccf6b3
1 file changed
plugins/folding.py
@@ -322,10 +322,11 @@ class MdeShowFoldAllSectionsCommand(MdeTextCommand):
322
"""
323
324
def run(self, edit):
325
- view = self.view
326
- view.window().run_command(
327
- "show_overlay", {"overlay": "command_palette", "text": "MarkdownEditing: Fold"}
328
- )
+ window = self.view.window()
+ if window:
+ window.run_command(
+ "show_overlay", {"overlay": "command_palette", "text": "MarkdownEditing: Fold"}
329
+ )
330
331
332
class MdeFoldAllSectionsCommand(MdeTextCommand):
0 commit comments