Merge pull request #247 from Brentdevent/main
Fix crashing when typing in console
This commit is contained in:
commit
01643a860a
@ -65,6 +65,9 @@ namespace dvars
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto [beg, end] = std::ranges::remove(data, '\r');
|
||||||
|
data.erase(beg, end);
|
||||||
|
|
||||||
std::istringstream stream(data);
|
std::istringstream stream(data);
|
||||||
std::string line;
|
std::string line;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user