Skip to content

Commit

Permalink
Report input source for SCN_CHARADDED.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Jul 11, 2019
1 parent a193bc7 commit d9cd13e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ScintillaCurses.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,13 @@ class ScintillaCurses : public ScintillaBase {
char utf8[6];
int len;
toutf8(key, utf8, &len);
return (InsertCharacter(utf8, len), 1);
} else return (AddChar(key), 1);
InsertCharacter(utf8, len, EditModel::CharacterSource::directInput);
return 1;
} else {
char ch = static_cast<char>(key);
InsertCharacter(&ch, 1, EditModel::CharacterSource::directInput);
return 1;
}
} else {
SCNotification scn = {};
scn.nmhdr.code = SCN_KEY;
Expand Down

0 comments on commit d9cd13e

Please sign in to comment.