diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-01 15:36:47 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-01 15:36:47 +0300 |
commit | eef068155763e335ed1000901b0b7c321a8aabe1 (patch) | |
tree | d453a9864dfd52becd6a95ad331ba50372088dce | |
parent | 6dbbfdf86be4a706079d19bdd2e39ff430b22e00 (diff) |
InputWidget: Pasting replaces selected text
-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); |