diff --git a/plugins/view.py b/plugins/view.py index 74dc097f..0b5ff18f 100644 --- a/plugins/view.py +++ b/plugins/view.py @@ -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()