mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
improved selection
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@180 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -563,7 +563,7 @@ size_t TextValueEditor::prevCharBoundry(size_t pos) const {
|
||||
return max(0, (int)pos - 1);
|
||||
}
|
||||
size_t TextValueEditor::nextCharBoundry(size_t pos) const {
|
||||
return pos + 1;
|
||||
return min(index_to_cursor(value().value(), String::npos), pos + 1);
|
||||
}
|
||||
size_t TextValueEditor::prevWordBoundry(size_t pos_i) const {
|
||||
const String& val = value().value();
|
||||
|
||||
Reference in New Issue
Block a user