{"action":"created","issue":{"url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/81","repository_url":"https://api.github.com/repos/drmingdrmer/xptemplate","labels_url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/81/comments","events_url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/81/events","html_url":"https://github.com/drmingdrmer/xptemplate/issues/81","id":174495992,"number":81,"title":"Exiting insert mode adds char at EOL","user":{"login":"spidernetlabs","id":1247233,"avatar_url":"https://avatars.githubusercontent.com/u/1247233?v=3","gravatar_id":"","url":"https://api.github.com/users/spidernetlabs","html_url":"https://github.com/spidernetlabs","followers_url":"https://api.github.com/users/spidernetlabs/followers","following_url":"https://api.github.com/users/spidernetlabs/following{/other_user}","gists_url":"https://api.github.com/users/spidernetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/spidernetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spidernetlabs/subscriptions","organizations_url":"https://api.github.com/users/spidernetlabs/orgs","repos_url":"https://api.github.com/users/spidernetlabs/repos","events_url":"https://api.github.com/users/spidernetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/spidernetlabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-01T11:05:24Z","updated_at":"2016-09-03T23:59:33Z","closed_at":null,"body":"Like the title says and as [this](https://i.imgur.com/Bvrbj5k.gif) gif shows exiting Insert mode using the ESC key causes a char to be added at the end of line. It happens with other functions too, like `malloc()`.\r\n\r\nAnother example is if I use xptemplate to write `printf(\"%d\\n\", (3+2));` It causes a ')' to be added after the ';', giving me `printf(\"%d\\n\", (3+2));)`\r\n\r\nIf I manually type it (without using xptemplate) it behaves like usual. No extra char is added.\r\n\r\nvimrc: http://nopaste.linux-dev.org/?1119832"},"comment":{"url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/comments/244576421","html_url":"https://github.com/drmingdrmer/xptemplate/issues/81#issuecomment-244576421","issue_url":"https://api.github.com/repos/drmingdrmer/xptemplate/issues/81","id":244576421,"user":{"login":"drmingdrmer","id":44069,"avatar_url":"https://avatars.githubusercontent.com/u/44069?v=3","gravatar_id":"","url":"https://api.github.com/users/drmingdrmer","html_url":"https://github.com/drmingdrmer","followers_url":"https://api.github.com/users/drmingdrmer/followers","following_url":"https://api.github.com/users/drmingdrmer/following{/other_user}","gists_url":"https://api.github.com/users/drmingdrmer/gists{/gist_id}","starred_url":"https://api.github.com/users/drmingdrmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmingdrmer/subscriptions","organizations_url":"https://api.github.com/users/drmingdrmer/orgs","repos_url":"https://api.github.com/users/drmingdrmer/repos","events_url":"https://api.github.com/users/drmingdrmer/events{/privacy}","received_events_url":"https://api.github.com/users/drmingdrmer/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T23:59:33Z","updated_at":"2016-09-03T23:59:33Z","body":"I found that adding this line to vimrc removes this issue:\r\n```\r\nlet g:AutoClosePreserveDotReg = 0\r\n```\r\n\r\nObviously vim-autoclose does not deal with cursor-moving in INSERT mode very well. It assumes when `ESC` pressed cursor is always before a quote or bracket.\r\n\r\nI posted an issue to vim-autoclose describing how to reproduce this issue, maybe the author has a better way to solve this. Townk/vim-autoclose#72"}}
{"actor":{"display_login":"drmingdrmer"}}