--- a/src/Tools/jEdit/src/keymap_merge.scala Fri Sep 02 08:54:46 2016 +0200
+++ b/src/Tools/jEdit/src/keymap_merge.scala Fri Sep 02 12:29:06 2016 +0200
@@ -53,12 +53,9 @@
def is_ignored(keymap_name: String): Boolean =
ignored_keymaps().contains(keymap_name)
- def ignore(keymap_name: String)
- {
- val keymaps1 = Library.insert(keymap_name)(ignored_keymaps()).sorted
- if (keymaps1.isEmpty) jEdit.resetProperty(prop_ignore)
- else jEdit.setProperty(prop_ignore, keymaps1.mkString(","))
- }
+ def ignore(keymap_name: String): Unit =
+ jEdit.setProperty(prop_ignore,
+ Library.insert(keymap_name)(ignored_keymaps()).sorted.mkString(","))
def set(keymap: Keymap): Unit = keymap.setShortcut(property, binding)
def reset(keymap: Keymap): Unit = keymap.setShortcut(property, null)