payload: {"action":"created","issue":{"url":"https://api.github.com/repos/vim/vim/issues/4095","repository_url":"https://api.github.com/repos/vim/vim","labels_url":"https://api.github.com/repos/vim/vim/issues/4095/labels{/name}","comments_url":"https://api.github.com/repos/vim/vim/issues/4095/comments","events_url":"https://api.github.com/repos/vim/vim/issues/4095/events","html_url":"https://github.com/vim/vim/pull/4095","id":419383184,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU5ODk5NzM0","number":4095,"title":"fixed g{j,k} when starting from inside a fold.","user":{"login":"juliusHuelsmann","id":9212314,"node_id":"MDQ6VXNlcjkyMTIzMTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9212314?v=4","gravatar_id":"","url":"https://api.github.com/users/juliusHuelsmann","html_url":"https://github.com/juliusHuelsmann","followers_url":"https://api.github.com/users/juliusHuelsmann/followers","following_url":"https://api.github.com/users/juliusHuelsmann/following{/other_user}","gists_url":"https://api.github.com/users/juliusHuelsmann/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusHuelsmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusHuelsmann/subscriptions","organizations_url":"https://api.github.com/users/juliusHuelsmann/orgs","repos_url":"https://api.github.com/users/juliusHuelsmann/repos","events_url":"https://api.github.com/users/juliusHuelsmann/events{/privacy}","received_events_url":"https://api.github.com/users/juliusHuelsmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-11T10:00:54Z","updated_at":"2019-04-04T12:12:10Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/vim/vim/pulls/4095","html_url":"https://github.com/vim/vim/pull/4095","diff_url":"https://github.com/vim/vim/pull/4095.diff","patch_url":"https://github.com/vim/vim/pull/4095.patch"},"body":"When using `[n]g{j, k}` starting inside a fold, the behavior differs from what it is described to be: \r\n\r\n\r\n### What it does:\r\n- It behaves like [n]j if started from inside a fold. \r\n- When outside a closed fold, it does what it is supposed to do.\r\n\r\n\r\n### What it is supposed to do:\r\nmove down `n` lines, where `lines` refers to the visual line on screen (taking into account wrapped lines as multiple lines).\r\n\r\n### Example:\r\n![description](https://user-images.githubusercontent.com/9212314/54114293-5f318580-43ea-11e9-9cc9-787bebbe85c2.jpg)\r\nExample: when typing `6j` from line `14` (fold, currently active in screenshot), it moves to the relative line `6` (two beneath the wrapped line), although it should move into the 3rd line of the wrapped lines.\r\n\r\n\r\n#### Sample text that can be used for reproducing the issue\r\nEven though it is straight forward to reproduce it, below you can find text for reproducing the issue. Be sure to close the fold located at line `4` and to reduce the window's size and to have wrapped enabled.\r\nThen issue `6gj`\r\n\r\nSetup environment\r\n```vim\r\n\" paste below text and ensure that the line is wrapped\r\n:4\r\n:setlocal foldmethod=indent\r\nzc\r\n:set relativenumber\r\n\r\n```\r\n\r\n```\r\n\r\n{\r\n\t-\r\n\t-\r\n\t-\r\n\t-\r\n}\r\n\r\n\r\n\r\nThis is a line that spans across multiple single lines because line-wrapping is enabled. (2) This is a line that spans across multiple single lines because line-wrapping is enabled. (3) This is a line that spans across multiple single lines because line-wrapping is enabled. (4)  This is a line that spans across multiple single lines because line-wrapping is enabled. \r\n\r\n```\r\n\r\n\r\nI am not sure why it is checked whether the current line is inside a closed fold anyway (and assume that that is a leftover from when `gj` was implemented differently. \r\n"},"comment":{"url":"https://api.github.com/repos/vim/vim/issues/comments/479871887","html_url":"https://github.com/vim/vim/pull/4095#issuecomment-479871887","issue_url":"https://api.github.com/repos/vim/vim/issues/4095","id":479871887,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3OTg3MTg4Nw==","user":{"login":"brammool","id":8530623,"node_id":"MDQ6VXNlcjg1MzA2MjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8530623?v=4","gravatar_id":"","url":"https://api.github.com/users/brammool","html_url":"https://github.com/brammool","followers_url":"https://api.github.com/users/brammool/followers","following_url":"https://api.github.com/users/brammool/following{/other_user}","gists_url":"https://api.github.com/users/brammool/gists{/gist_id}","starred_url":"https://api.github.com/users/brammool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brammool/subscriptions","organizations_url":"https://api.github.com/users/brammool/orgs","repos_url":"https://api.github.com/users/brammool/repos","events_url":"https://api.github.com/users/brammool/events{/privacy}","received_events_url":"https://api.github.com/users/brammool/received_events","type":"User","site_admin":false},"created_at":"2019-04-04T12:12:10Z","updated_at":"2019-04-04T12:12:10Z","author_association":"CONTRIBUTOR","body":"Please add a test.  Also that gj without a count, starting inside the fold, moves to the line just below the fold."}}
other: {"actor":{"display_login":"brammool"}}