diff options
-rw-r--r-- | src/ui/inputwidget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index eca5dbdd..d583b109 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -470,6 +470,7 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) { | |||
470 | case 'v': | 470 | case 'v': |
471 | if (SDL_HasClipboardText()) { | 471 | if (SDL_HasClipboardText()) { |
472 | pushUndo_InputWidget_(d); | 472 | pushUndo_InputWidget_(d); |
473 | deleteMarked_InputWidget_(d); | ||
473 | char *text = SDL_GetClipboardText(); | 474 | char *text = SDL_GetClipboardText(); |
474 | iString *paste = collect_String(newCStr_String(text)); | 475 | iString *paste = collect_String(newCStr_String(text)); |
475 | SDL_free(text); | 476 | SDL_free(text); |