Skip to content

Commit

Permalink
fix wrong redo
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Mar 23, 2024
1 parent f0266f0 commit b8b2a1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2795,8 +2795,7 @@ void TextEditorView::doUndoRedo () const
}
else if (it->characters.empty () == false)
{
md.editState.select_end =
md.editState.select_start + static_cast<int> (it->characters.size ());
md.editState.select_end = md.editState.select_start;
callSTB ([&] () {
stb_textedit_paste (this, &md.editState, it->characters.data (),
static_cast<int> (it->characters.size ()));
Expand Down

0 comments on commit b8b2a1d

Please sign in to comment.