]> git.lyx.org Git - features.git/blobdiff - src/trans.C
the buffer patch, moved Buffer::text to BufferView, moved Buffer::update(short) to...
[features.git] / src / trans.C
index 73dcf410a0b5eeaa583e78f442c54fbe079c1b4a..066a13ec4c335d28ffd73731c71ac801d8a0c341 100644 (file)
@@ -260,7 +260,7 @@ int Trans::Load(LyXLex & lex)
                }
                break;
                case KMAP: {
-                       char key_from;
+                       unsigned char key_from;
                        char * string_to;
 
                        if (lyxerr.debugging(Debug::KBMAP))
@@ -276,7 +276,7 @@ int Trans::Load(LyXLex & lex)
                        if (lex.next(true)) {
                                char const * t = lex.text();
                                string_to = strcpy(new char[strlen(t)+1], t);
-                               if (key_from == char(254))
+                               if (key_from == 254)
                                        lyxerr << "check two triggered"
                                               << endl;
                                keymap_[key_from] = string_to;
@@ -351,7 +351,7 @@ string Trans::process(char c, TransManager & k)
        char * dt = dummy;
        char * t = Match(c);
     
-       if ((t == 0 && (dt[0] = c)) || (t[0] != 0 && (dt = t)) ){
+       if ((t == 0 && (*dt = c)) || (t[0] != 0 && (dt = t)) ){
                return k.normalkey(c, dt);
        } else {
                return k.deadkey(c, *kmod_list_[(tex_accent)t[1]]);