diff options
author | nyamatongwe <unknown> | 2004-04-16 23:54:01 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-04-16 23:54:01 +0000 |
commit | 0c3f842c61b1d0c23247385bead7a577c8a54b1c (patch) | |
tree | 87e24a0602f7aff6508cfc3a570ca84278b462e7 /src/Editor.h | |
parent | 5305dc49182acef1574427bb57ad24025967738d (diff) | |
download | scintilla-mirror-0c3f842c61b1d0c23247385bead7a577c8a54b1c.tar.gz |
Patch from John Ehresman to add character set to selections.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Editor.h b/src/Editor.h index 08c56f7a4..c9c4c26e1 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -134,20 +134,22 @@ public: char *s; int len; bool rectangular; - SelectionText() : s(0), len(0), rectangular(false) {} + int characterSet; + SelectionText() : s(0), len(0), rectangular(false), characterSet(0) {} ~SelectionText() { - Set(0, 0); + Set(0, 0, 0); } - void Set(char *s_, int len_, bool rectangular_=false) { + void Set(char *s_, int len_, int characterSet_, bool rectangular_=false) { delete []s; s = s_; if (s) len = len_; else len = 0; + characterSet = characterSet_; rectangular = rectangular_; } - void Copy(const char *s_, int len_, bool rectangular_=false) { + void Copy(const char *s_, int len_, int characterSet_, bool rectangular_=false) { delete []s; s = new char[len_]; if (s) { @@ -158,6 +160,7 @@ public: } else { len = 0; } + characterSet = characterSet_; rectangular = rectangular_; } }; |