{"action":"created","issue":{"url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/28","repository_url":"https://api.github.com/repos/jalvesaq/Nvim-R","labels_url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/28/comments","events_url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/28/events","html_url":"https://github.com/jalvesaq/Nvim-R/pull/28","id":134980228,"number":28,"title":"Jump to previous window not previous buffer","user":{"login":"mdlerch","id":1192813,"avatar_url":"https://avatars.githubusercontent.com/u/1192813?v=3","gravatar_id":"","url":"https://api.github.com/users/mdlerch","html_url":"https://github.com/mdlerch","followers_url":"https://api.github.com/users/mdlerch/followers","following_url":"https://api.github.com/users/mdlerch/following{/other_user}","gists_url":"https://api.github.com/users/mdlerch/gists{/gist_id}","starred_url":"https://api.github.com/users/mdlerch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdlerch/subscriptions","organizations_url":"https://api.github.com/users/mdlerch/orgs","repos_url":"https://api.github.com/users/mdlerch/repos","events_url":"https://api.github.com/users/mdlerch/events{/privacy}","received_events_url":"https://api.github.com/users/mdlerch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T21:32:49Z","updated_at":"2016-02-19T22:12:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jalvesaq/Nvim-R/pulls/28","html_url":"https://github.com/jalvesaq/Nvim-R/pull/28","diff_url":"https://github.com/jalvesaq/Nvim-R/pull/28.diff","patch_url":"https://github.com/jalvesaq/Nvim-R/pull/28.patch"},"body":"The ExeOnRTerm function jumps to the term buffer running R and then back to the previous buffer.  However, if one has the same buffer open in multiple windows, ExeOnRTerm jumps back to the first window that contains that buffer.  It makes more sense to jump to the window that the user was previously in rather than just the first window that contains the buffer.\r\n\r\nThis simple patch should switch the user back to the previous window.   I also don't think that we need to worry about the switchbuf variable anymore, but please correct me if I am wrong."},"comment":{"url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/comments/186430801","html_url":"https://github.com/jalvesaq/Nvim-R/pull/28#issuecomment-186430801","issue_url":"https://api.github.com/repos/jalvesaq/Nvim-R/issues/28","id":186430801,"user":{"login":"jalvesaq","id":891655,"avatar_url":"https://avatars.githubusercontent.com/u/891655?v=3","gravatar_id":"","url":"https://api.github.com/users/jalvesaq","html_url":"https://github.com/jalvesaq","followers_url":"https://api.github.com/users/jalvesaq/followers","following_url":"https://api.github.com/users/jalvesaq/following{/other_user}","gists_url":"https://api.github.com/users/jalvesaq/gists{/gist_id}","starred_url":"https://api.github.com/users/jalvesaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalvesaq/subscriptions","organizations_url":"https://api.github.com/users/jalvesaq/orgs","repos_url":"https://api.github.com/users/jalvesaq/repos","events_url":"https://api.github.com/users/jalvesaq/events{/privacy}","received_events_url":"https://api.github.com/users/jalvesaq/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T22:12:19Z","updated_at":"2016-02-19T22:12:19Z","body":"Thanks! I'm going to merge the pull request now. If I note any problem, I will try to fix."}}