From ad0ffcaadd1d403608e4adf8d3f0132642d4689a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Jan 2015 08:39:12 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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