mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-15 07:28:28 +00:00
annoyance
This commit is contained in:
parent
a0d3cbb7e4
commit
3d8d5115cf
@ -760,7 +760,7 @@ impl<'a> TextCallbackData<'a> {
|
||||
.char_indices()
|
||||
.nth(char_count)
|
||||
.map(|v| v.0)
|
||||
.unwrap_or(inner.len());
|
||||
.unwrap_or_else(|| inner.len());
|
||||
|
||||
unsafe {
|
||||
self.remove_chars_unchecked(pos, byte_count);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user