fix crash when drawing in text_changed event with new line inserted(#332)
This commit is contained in:
@@ -428,7 +428,7 @@ namespace drawerbase {
|
||||
if(at_caret == false)
|
||||
editor->move_caret_end(false);
|
||||
|
||||
editor->put(to_wstring(text));
|
||||
editor->put(to_wstring(text), true);
|
||||
|
||||
editor->try_refresh();
|
||||
API::update_window(this->handle());
|
||||
@@ -445,7 +445,7 @@ namespace drawerbase {
|
||||
if(at_caret == false)
|
||||
editor->move_caret_end(false);
|
||||
|
||||
editor->put(text);
|
||||
editor->put(text, true);
|
||||
|
||||
editor->try_refresh();
|
||||
API::update_window(this->handle());
|
||||
|
||||
Reference in New Issue
Block a user