{"action":"created","issue":{"url":"https://api.github.com/repos/texstudio-org/texstudio/issues/315","repository_url":"https://api.github.com/repos/texstudio-org/texstudio","labels_url":"https://api.github.com/repos/texstudio-org/texstudio/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/texstudio-org/texstudio/issues/315/comments","events_url":"https://api.github.com/repos/texstudio-org/texstudio/issues/315/events","html_url":"https://github.com/texstudio-org/texstudio/issues/315","id":357960243,"node_id":"MDU6SXNzdWUzNTc5NjAyNDM=","number":315,"title":"Selecting references - bibliographic or internal to the document - removes subsequent text until the next closing bracket.","user":{"login":"hannes101","id":11256578,"node_id":"MDQ6VXNlcjExMjU2NTc4","avatar_url":"https://avatars0.githubusercontent.com/u/11256578?v=4","gravatar_id":"","url":"https://api.github.com/users/hannes101","html_url":"https://github.com/hannes101","followers_url":"https://api.github.com/users/hannes101/followers","following_url":"https://api.github.com/users/hannes101/following{/other_user}","gists_url":"https://api.github.com/users/hannes101/gists{/gist_id}","starred_url":"https://api.github.com/users/hannes101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannes101/subscriptions","organizations_url":"https://api.github.com/users/hannes101/orgs","repos_url":"https://api.github.com/users/hannes101/repos","events_url":"https://api.github.com/users/hannes101/events{/privacy}","received_events_url":"https://api.github.com/users/hannes101/received_events","type":"User","site_admin":false},"labels":[{"id":763606727,"node_id":"MDU6TGFiZWw3NjM2MDY3Mjc=","url":"https://api.github.com/repos/texstudio-org/texstudio/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-07T07:58:56Z","updated_at":"2018-09-10T06:01:07Z","closed_at":null,"author_association":"NONE","body":"If inside a caption or footnote environment, if one would like to include a reference with \\ref{} or \\textcite{} and after selecting one of the presented options, all the following text inside the caption or the footnote is deleted until the closing bracket of the footnote or caption is reached. \r\nI hope the description is clear, it probably doesn't happen so often, since most of the time one does this on the fly and there's no text following the reference to be inserted, but in my case this happened repeatedly.\r\n\r\n### Environment\r\n- TeXstudio  2.12.10\r\n- Qt: Using Qt Version 5.10.1, compiled with Qt 5.10.1 R\r\n- OS: fedora 28 x86_64\r\n- TeX distribution: texlive\r\n\r\n### Expected behavior\r\nNo text inside the footnote is removed after the insertion of a reference.\r\n\r\n### Actual behavior\r\nText is removed.\r\n\r\n### How to reproduce\r\nCreate a \\footnote and enter some text. Then start adding a reference with \\ref and select an item from the dropdown menu. Hit enter and the text after it is gone and the closing bracket is missing as well.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/texstudio-org/texstudio/issues/comments/419796946","html_url":"https://github.com/texstudio-org/texstudio/issues/315#issuecomment-419796946","issue_url":"https://api.github.com/repos/texstudio-org/texstudio/issues/315","id":419796946,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTc5Njk0Ng==","user":{"login":"hannes101","id":11256578,"node_id":"MDQ6VXNlcjExMjU2NTc4","avatar_url":"https://avatars0.githubusercontent.com/u/11256578?v=4","gravatar_id":"","url":"https://api.github.com/users/hannes101","html_url":"https://github.com/hannes101","followers_url":"https://api.github.com/users/hannes101/followers","following_url":"https://api.github.com/users/hannes101/following{/other_user}","gists_url":"https://api.github.com/users/hannes101/gists{/gist_id}","starred_url":"https://api.github.com/users/hannes101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannes101/subscriptions","organizations_url":"https://api.github.com/users/hannes101/orgs","repos_url":"https://api.github.com/users/hannes101/repos","events_url":"https://api.github.com/users/hannes101/events{/privacy}","received_events_url":"https://api.github.com/users/hannes101/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T06:01:07Z","updated_at":"2018-09-10T06:01:07Z","author_association":"NONE","body":"I don't mind using `\\textcit`, but the issue I had was that I didn't notice the replacement behavior the first time and then just wondered where all the text went. I think the problem is that documents could become corrupted and no one notices."}}
{"actor":{"display_login":"hannes101"}}