{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/6269","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/6269/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/6269/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/6269/events","html_url":"https://github.com/neovim/neovim/issues/6269","id":213862601,"number":6269,"title":"virtcol() assumes extra bytes belong to next column (Vim patch 8.0.0250)","user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars2.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-13T18:49:38Z","updated_at":"2017-03-24T13:28:23Z","closed_at":"2017-03-24T13:28:23Z","body":"- `nvim --version`: v0.2.0-493-g7e7f01a3\r\n- Vim (version: 8.0.427) behaves differently!\r\n- Operating system/version: Arch Linux\r\n\r\n### Actual behaviour\r\n\r\n`virtcol()` seems to wrap over to the next char too early in Neovim.\r\n\r\nTEST CASE:\r\n```vim\r\nscriptencoding utf8\r\nnew\r\nlet v:errors = []\r\ncall setline(1, '…foo')\r\ncall assert_equal(1, virtcol([1, 1]))\r\ncall assert_equal(1, virtcol([1, 2]))\r\ncall assert_equal(1, virtcol([1, 3]))\r\ncall assert_equal(2, virtcol([1, 4]))\r\nbd!\r\n\r\nif len(v:errors)\r\n  throw join(v:errors, '\\n')\r\nendif\r\n```\r\n\r\n### Expected behaviour\r\n\r\nShould not throw errors.\r\n\r\nline 6: Expected 1 but got 2\r\nline 7: Expected 1 but got 2\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n```\r\nnvim -u script-from-above\r\n```\r\n\r\n> virtcol({expr})\t\t\t\t\t\t*virtcol()*\r\n\t\tThe result is a Number, which is the screen column of the file\r\n\t\tposition given with {expr}.  That is, the last screen position\r\n\t\toccupied by the character at that position, when the screen\r\n\t\twould be of unlimited width.  …"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/289022264","html_url":"https://github.com/neovim/neovim/issues/6269#issuecomment-289022264","issue_url":"https://api.github.com/repos/neovim/neovim/issues/6269","id":289022264,"user":{"login":"jamessan","id":112971,"avatar_url":"https://avatars3.githubusercontent.com/u/112971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessan","html_url":"https://github.com/jamessan","followers_url":"https://api.github.com/users/jamessan/followers","following_url":"https://api.github.com/users/jamessan/following{/other_user}","gists_url":"https://api.github.com/users/jamessan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessan/subscriptions","organizations_url":"https://api.github.com/users/jamessan/orgs","repos_url":"https://api.github.com/users/jamessan/repos","events_url":"https://api.github.com/users/jamessan/events{/privacy}","received_events_url":"https://api.github.com/users/jamessan/received_events","type":"User","site_admin":false},"created_at":"2017-03-24T13:28:23Z","updated_at":"2017-03-24T13:28:23Z","body":"Fixed by eb8cbfc."}}
{"actor":{"display_login":"jamessan"}}