{"action":"opened","issue":{"url":"https://api.github.com/repos/marktext/marktext/issues/371","repository_url":"https://api.github.com/repos/marktext/marktext","labels_url":"https://api.github.com/repos/marktext/marktext/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/marktext/marktext/issues/371/comments","events_url":"https://api.github.com/repos/marktext/marktext/issues/371/events","html_url":"https://github.com/marktext/marktext/issues/371","id":333644615,"node_id":"MDU6SXNzdWUzMzM2NDQ2MTU=","number":371,"title":"Pasting text when other text is selected appends instead of replaces it","user":{"login":"jkrzefski","id":11394739,"node_id":"MDQ6VXNlcjExMzk0NzM5","avatar_url":"https://avatars0.githubusercontent.com/u/11394739?v=4","gravatar_id":"","url":"https://api.github.com/users/jkrzefski","html_url":"https://github.com/jkrzefski","followers_url":"https://api.github.com/users/jkrzefski/followers","following_url":"https://api.github.com/users/jkrzefski/following{/other_user}","gists_url":"https://api.github.com/users/jkrzefski/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrzefski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrzefski/subscriptions","organizations_url":"https://api.github.com/users/jkrzefski/orgs","repos_url":"https://api.github.com/users/jkrzefski/repos","events_url":"https://api.github.com/users/jkrzefski/events{/privacy}","received_events_url":"https://api.github.com/users/jkrzefski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T12:15:04Z","updated_at":"2018-06-19T12:15:04Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nWhen a text is in the clipboard and I select some text in my document and then paste the text from my clipboard, the selected text is not replaced by the pasted text but instead the pasted text gets appended to the selected text. It does not matter if I use shortcuts (CMD + V) or the context menu or the menu bar. The behavior is consistent throughout all of them. I made a simple example for this:\r\n\r\n### Steps to reproduce\r\n\r\n1. Get the word `bar` into your clipboard.\r\n2. Open a new document.\r\n3. Write the word `foo` and select it.\r\n4. Paste the content of your clipboard into the document while `foo` is still selected.\r\n\r\n**Expected behavior:** The text present in the document should be `bar`.\r\n\r\n**Actual behavior:** The text present in the document is actually `foobar`.\r\n\r\n### Versions\r\n\r\n- Mark Text: 0.12.20\r\n- OS: macOS 10.13.4\r\n"}}
{"actor":{"display_login":"jkrzefski"}}