Compare commits
6
Commits
09f472bee2
...
fe90af5aa4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe90af5aa4 | ||
|
|
7e672d91e9 | ||
|
|
bef9be5cbe | ||
|
|
21890e74fe | ||
|
|
bb7b892f7c | ||
|
|
ded6f18dd5 |
@@ -32,7 +32,7 @@ namespace ctlXMLEditLib
|
||||
public void InsertSymbol( int symbcode)
|
||||
{
|
||||
int position = this.SelectionStart;
|
||||
string sym = string.Format(symbcode < 256 ? "\'{0:X2}" : @"\u{0}", symbcode);
|
||||
string sym = symbcode < 256 ? ((char)symbcode).ToString() : string.Format(@"\u{0}", symbcode);
|
||||
this.SelectedRtf = RtfPrefixForSymbols + sym + @"}";
|
||||
Select(position, -1);
|
||||
Select(position + 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user