Skip to content

Commit

Permalink
Plugins: Fix None type error
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Oct 22, 2024
1 parent 172bb31 commit a02d683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MdeCenteredLineKeeper(MdeViewEventListener):

def on_modified(self):
sel = self.view.sel()
if sel and len(sel) != 1:
if not sel or len(sel) != 1:
return

settings = self.view.settings()
Expand Down

0 comments on commit a02d683

Please sign in to comment.