diff --git a/src/calibre/gui2/tweak_book/editor/snippets.py b/src/calibre/gui2/tweak_book/editor/snippets.py index 4bf9433569..0fc4467100 100644 --- a/src/calibre/gui2/tweak_book/editor/snippets.py +++ b/src/calibre/gui2/tweak_book/editor/snippets.py @@ -262,7 +262,7 @@ class Template(list): if not m.is_deleted: m.text = ts.text for x in self: - if x.num > ts.num: + if x.num > ts.num and not x.is_deleted: self.active_tab_stop = x x.set_editor_cursor(editor) return x