{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/34851625","id":34851625,"diff_hunk":"@@ -0,0 +1,38 @@\n+local helpers = require('test.functional.helpers')\n+local clear, execute, nvim = helpers.clear, helpers.execute, helpers.nvim\n+local expect = helpers.expect\n+local feed = helpers.feed\n+local command = helpers.command","path":"test/functional/ui/menu_spec.lua","position":5,"original_position":5,"commit_id":"84631529506fa4a8ef1bd38d256e3c12fa67d3fa","original_commit_id":"84631529506fa4a8ef1bd38d256e3c12fa67d3fa","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"body":"This should probably go in `/ex_cmds/` rather than `/ui/`. ","created_at":"2015-07-17T00:03:45Z","updated_at":"2015-07-17T00:03:45Z","html_url":"https://github.com/neovim/neovim/pull/2992#discussion_r34851625","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/2992","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/34851625"},"html":{"href":"https://github.com/neovim/neovim/pull/2992#discussion_r34851625"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2992"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/2992","id":39732162,"html_url":"https://github.com/neovim/neovim/pull/2992","diff_url":"https://github.com/neovim/neovim/pull/2992.diff","patch_url":"https://github.com/neovim/neovim/pull/2992.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2992","number":2992,"state":"open","locked":false,"title":"[RFC] Fix :emenu when run from insert or visual mode","user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"body":"A menu item can have separate bindings for each Vim mode.\r\n\r\n:emenu checks to see which binding it should execute. But, it assumes\r\nit can only be called from Normal mode, so its mode detection is based\r\non some guesswork. For instance, it detects if you've just used C-O\r\nand, if so, uses the Insert mode binding.\r\n\r\nNow that :emenu can be called from any mode (via vim_command), this\r\ncommit has it check the actual mode we're in, and simply use the\r\nbinding for that mode if we aren't in Normal mode.","created_at":"2015-07-10T22:59:08Z","updated_at":"2015-07-17T00:03:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efe89bb76984d6b2c637579271292a5d934240da","assignee":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/2992/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/2992/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2992/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/84631529506fa4a8ef1bd38d256e3c12fa67d3fa","head":{"label":"rogual:rga-menu","ref":"rga-menu","sha":"84631529506fa4a8ef1bd38d256e3c12fa67d3fa","user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"repo":{"id":32823969,"name":"neovim","full_name":"rogual/neovim","owner":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rogual/neovim","description":"vim out of the box","fork":true,"url":"https://api.github.com/repos/rogual/neovim","forks_url":"https://api.github.com/repos/rogual/neovim/forks","keys_url":"https://api.github.com/repos/rogual/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rogual/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rogual/neovim/teams","hooks_url":"https://api.github.com/repos/rogual/neovim/hooks","issue_events_url":"https://api.github.com/repos/rogual/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/rogual/neovim/events","assignees_url":"https://api.github.com/repos/rogual/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/rogual/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/rogual/neovim/tags","blobs_url":"https://api.github.com/repos/rogual/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rogual/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rogual/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/rogual/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rogual/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/rogual/neovim/languages","stargazers_url":"https://api.github.com/repos/rogual/neovim/stargazers","contributors_url":"https://api.github.com/repos/rogual/neovim/contributors","subscribers_url":"https://api.github.com/repos/rogual/neovim/subscribers","subscription_url":"https://api.github.com/repos/rogual/neovim/subscription","commits_url":"https://api.github.com/repos/rogual/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/rogual/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/rogual/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/rogual/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/rogual/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/rogual/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rogual/neovim/merges","archive_url":"https://api.github.com/repos/rogual/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rogual/neovim/downloads","issues_url":"https://api.github.com/repos/rogual/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/rogual/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/rogual/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/rogual/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rogual/neovim/labels{/name}","releases_url":"https://api.github.com/repos/rogual/neovim/releases{/id}","created_at":"2015-03-24T20:41:21Z","updated_at":"2015-03-26T20:32:27Z","pushed_at":"2015-07-12T12:56:24Z","git_url":"git://github.com/rogual/neovim.git","ssh_url":"git@github.com:rogual/neovim.git","clone_url":"https://github.com/rogual/neovim.git","svn_url":"https://github.com/rogual/neovim","homepage":"http://neovim.org","size":32099,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neovim:master","ref":"master","sha":"c80ebfff82d539d44815b1d36709ba573e4e38e8","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"ambitious Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2015-07-16T23:56:35Z","pushed_at":"2015-07-16T23:45:54Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":78624,"stargazers_count":14198,"watchers_count":14198,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":973,"mirror_url":null,"open_issues_count":549,"forks":973,"open_issues":549,"watchers":14198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2992"},"html":{"href":"https://github.com/neovim/neovim/pull/2992"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/2992"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/2992/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2992/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/2992/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/84631529506fa4a8ef1bd38d256e3c12fa67d3fa"}}}}