mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
type_over for combined_editor;
keyword compatability disabled for new file versions git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@278 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -49,6 +49,7 @@ IMPLEMENT_REFLECTION(KeywordMode) {
|
||||
template <typename T> void read_compat(T&, const Keyword*) {}
|
||||
void read_compat(Reader& tag, Keyword* k) {
|
||||
if (!k->match.empty()) return;
|
||||
if (tag.file_app_version >= 301) return; // only for versions < 0.3.1
|
||||
String separator, parameter;
|
||||
REFLECT(separator);
|
||||
REFLECT(parameter);
|
||||
|
||||
@@ -527,7 +527,7 @@ void TextValueEditor::replaceSelection(const String& replacement, const String&
|
||||
} else {
|
||||
selection_end_i = selection_start_i = min(selection_end_i, selection_start_i) + replacement.size();
|
||||
}
|
||||
fixSelection(TYPE_INDEX, MOVE_MID);
|
||||
fixSelection(TYPE_INDEX, MOVE_RIGHT);
|
||||
// scroll with next update
|
||||
scroll_with_cursor = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user