]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.C
Fixed cut&paste bugs and added freespacing for ERT Insets.
[lyx.git] / src / kbmap.C
index 67862d0bc60ad3a3043363a34983d33357ae6a69..8b528c49f1d046bae6fb066cd8b101b692dcbc66 100644 (file)
@@ -82,7 +82,7 @@ string::size_type kb_keymap::bind(string const & seq, int action)
        kb_sequence k;
 
        string::size_type const res = k.parse(seq);
-       if (!res) {
+       if (res == string::npos) {
                defkey(&k, action);
        } else
                lyxerr[Debug::KBMAP] << "Parse error at position " << res