From a02d6838d31ec4597caf8887510c055b5b947d05 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 22 Oct 2024 20:40:21 +0200 Subject: [PATCH] Plugins: Fix None type error --- plugins/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()