{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/68494828","id":68494828,"diff_hunk":"@@ -5846,3 +5914,286 @@ void set_context_in_sign_cmd(expand_T *xp, char_u *arg)\n     }\n   }\n }\n+\n+/// function called after a live command to get back to\n+/// a normal state\n+/// validate can take two values :\n+///     0 if the live_command has not been validated\n+///     1 if the user has validated the command\n+void finish_live_cmd(int save_state,\n+                     garray_T *winsizes,\n+                     int save_exmode,\n+                     int save_restart_edit,\n+                     int save_cmdmsg_rl,\n+                     int validate) {\n+  block_autocmds();\n+\n+  if (validate == 0 && sub_done == 1) {\n+    do_cmdline_cmd(\":u\");\n+    sub_done = 0;\n+  }\n+\n+  // Restore window sizes.\n+  if (winsizes != NULL) {\n+    win_size_restore(winsizes);\n+    ga_clear(winsizes);\n+  }\n+\n+  unblock_autocmds();\n+\n+  char_u typestr[2];\n+  typestr[0] = cmdwin_type;\n+  typestr[1] = NUL;\n+  apply_autocmds(EVENT_CMDWINLEAVE, typestr, typestr, false, curbuf);\n+\n+  exmode_active = save_exmode;\n+  restart_edit = save_restart_edit;\n+  cmdmsg_rl = save_cmdmsg_rl;\n+\n+  cmdwin_type = 0;\n+  RedrawingDisabled = 0;\n+\n+  State = save_state;\n+  setmouse();\n+  update_screen(0);\n+}\n+\n+/// ex_window_inc_sub()\n+/// Open a window for future displaying of the inc_sub mode.\n+///\n+/// Does not allow editing in the window.\n+/// Returns when the window is closed.\n+///\n+/// @param pat the pattern word\n+/// @param sub the replacement word\n+/// @param lmatch the list containing our data\n+void ex_window_inc_sub(char_u * pat,\n+                       char_u * sub,\n+                       klist_t(matchedline_T) *lmatch, // NOLINT\n+                       bool split)\n+FUNC_ATTR_NONNULL_ARG(1, 2, 3)\n+{\n+  garray_T winsizes;\n+  int save_restart_edit = restart_edit;\n+  int save_State = State;\n+  int save_exmode = exmode_active;\n+  int save_cmdmsg_rl = cmdmsg_rl;\n+\n+  // Can't do this recursively.  Can't do it when typing a password.\n+  if (cmdline_star > 0) {\n+    beep_flush();\n+    return;\n+  }\n+\n+  // Save current window sizes.\n+  win_size_save(&winsizes);\n+\n+  // Save the current window to restore it later\n+  win_T *oldwin = curwin;\n+\n+  if (split) {\n+    // Don't execute autocommands while creating the window.\n+    block_autocmds();\n+    // don't use a new tab page\n+    cmdmod.tab = 0;\n+\n+    // Create a window for the command-line buffer.\n+    if (win_split((int)p_cwh, WSP_BOT) == FAIL) {\n+      beep_flush();\n+      unblock_autocmds();\n+      return;\n+    }\n+    cmdwin_type = get_cmdline_type();\n+\n+    // Create the command-line buffer empty.\n+    (void)do_ecmd(0, NULL, NULL, NULL, ECMD_ONE, ECMD_HIDE, NULL);\n+    (void)setfname(curbuf, (char_u *) \"[inc_sub]\", NULL, true);\n+    set_option_value((char_u *) \"bt\", 0L, (char_u *) \"nofile\", OPT_LOCAL);","path":"src/nvim/ex_cmds.c","position":598,"original_position":598,"commit_id":"51123b2385e77d718da03532f774ecdcab1247ba","original_commit_id":"51123b2385e77d718da03532f774ecdcab1247ba","user":{"login":"ZyX-I","id":322097,"avatar_url":"https://avatars.githubusercontent.com/u/322097?v=3","gravatar_id":"","url":"https://api.github.com/users/ZyX-I","html_url":"https://github.com/ZyX-I","followers_url":"https://api.github.com/users/ZyX-I/followers","following_url":"https://api.github.com/users/ZyX-I/following{/other_user}","gists_url":"https://api.github.com/users/ZyX-I/gists{/gist_id}","starred_url":"https://api.github.com/users/ZyX-I/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZyX-I/subscriptions","organizations_url":"https://api.github.com/users/ZyX-I/orgs","repos_url":"https://api.github.com/users/ZyX-I/repos","events_url":"https://api.github.com/users/ZyX-I/events{/privacy}","received_events_url":"https://api.github.com/users/ZyX-I/received_events","type":"User","site_admin":false},"body":"This better have its own buftype, like the one used for quickfix.","created_at":"2016-06-25T22:33:36Z","updated_at":"2016-06-25T22:33:36Z","html_url":"https://github.com/neovim/neovim/pull/4915#discussion_r68494828","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/4915","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/68494828"},"html":{"href":"https://github.com/neovim/neovim/pull/4915#discussion_r68494828"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4915"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/4915","id":73619129,"html_url":"https://github.com/neovim/neovim/pull/4915","diff_url":"https://github.com/neovim/neovim/pull/4915.diff","patch_url":"https://github.com/neovim/neovim/pull/4915.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4915","number":4915,"state":"open","locked":false,"title":"[RFC] Livesub finishing","user":{"login":"KillTheMule","id":4117685,"avatar_url":"https://avatars.githubusercontent.com/u/4117685?v=3","gravatar_id":"","url":"https://api.github.com/users/KillTheMule","html_url":"https://github.com/KillTheMule","followers_url":"https://api.github.com/users/KillTheMule/followers","following_url":"https://api.github.com/users/KillTheMule/following{/other_user}","gists_url":"https://api.github.com/users/KillTheMule/gists{/gist_id}","starred_url":"https://api.github.com/users/KillTheMule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KillTheMule/subscriptions","organizations_url":"https://api.github.com/users/KillTheMule/orgs","repos_url":"https://api.github.com/users/KillTheMule/repos","events_url":"https://api.github.com/users/KillTheMule/events{/privacy}","received_events_url":"https://api.github.com/users/KillTheMule/received_events","type":"User","site_admin":false},"body":"Finishing up the livesub feature. I'll first squash commits, then see if I can work out the memory leaks, and after that I'll deal with the linting.\r\n\r\nRef https://github.com/neovim/neovim/pull/4811.","created_at":"2016-06-13T18:13:39Z","updated_at":"2016-06-25T22:33:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc587fd2a135179877c91255336e601c4d40812d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/4915/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/4915/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4915/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/51123b2385e77d718da03532f774ecdcab1247ba","head":{"label":"KillTheMule:livesub","ref":"livesub","sha":"51123b2385e77d718da03532f774ecdcab1247ba","user":{"login":"KillTheMule","id":4117685,"avatar_url":"https://avatars.githubusercontent.com/u/4117685?v=3","gravatar_id":"","url":"https://api.github.com/users/KillTheMule","html_url":"https://github.com/KillTheMule","followers_url":"https://api.github.com/users/KillTheMule/followers","following_url":"https://api.github.com/users/KillTheMule/following{/other_user}","gists_url":"https://api.github.com/users/KillTheMule/gists{/gist_id}","starred_url":"https://api.github.com/users/KillTheMule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KillTheMule/subscriptions","organizations_url":"https://api.github.com/users/KillTheMule/orgs","repos_url":"https://api.github.com/users/KillTheMule/repos","events_url":"https://api.github.com/users/KillTheMule/events{/privacy}","received_events_url":"https://api.github.com/users/KillTheMule/received_events","type":"User","site_admin":false},"repo":{"id":55714263,"name":"neovim","full_name":"KillTheMule/neovim","owner":{"login":"KillTheMule","id":4117685,"avatar_url":"https://avatars.githubusercontent.com/u/4117685?v=3","gravatar_id":"","url":"https://api.github.com/users/KillTheMule","html_url":"https://github.com/KillTheMule","followers_url":"https://api.github.com/users/KillTheMule/followers","following_url":"https://api.github.com/users/KillTheMule/following{/other_user}","gists_url":"https://api.github.com/users/KillTheMule/gists{/gist_id}","starred_url":"https://api.github.com/users/KillTheMule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KillTheMule/subscriptions","organizations_url":"https://api.github.com/users/KillTheMule/orgs","repos_url":"https://api.github.com/users/KillTheMule/repos","events_url":"https://api.github.com/users/KillTheMule/events{/privacy}","received_events_url":"https://api.github.com/users/KillTheMule/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KillTheMule/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":true,"url":"https://api.github.com/repos/KillTheMule/neovim","forks_url":"https://api.github.com/repos/KillTheMule/neovim/forks","keys_url":"https://api.github.com/repos/KillTheMule/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KillTheMule/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KillTheMule/neovim/teams","hooks_url":"https://api.github.com/repos/KillTheMule/neovim/hooks","issue_events_url":"https://api.github.com/repos/KillTheMule/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/KillTheMule/neovim/events","assignees_url":"https://api.github.com/repos/KillTheMule/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/KillTheMule/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/KillTheMule/neovim/tags","blobs_url":"https://api.github.com/repos/KillTheMule/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KillTheMule/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KillTheMule/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/KillTheMule/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KillTheMule/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/KillTheMule/neovim/languages","stargazers_url":"https://api.github.com/repos/KillTheMule/neovim/stargazers","contributors_url":"https://api.github.com/repos/KillTheMule/neovim/contributors","subscribers_url":"https://api.github.com/repos/KillTheMule/neovim/subscribers","subscription_url":"https://api.github.com/repos/KillTheMule/neovim/subscription","commits_url":"https://api.github.com/repos/KillTheMule/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/KillTheMule/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/KillTheMule/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/KillTheMule/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/KillTheMule/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/KillTheMule/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KillTheMule/neovim/merges","archive_url":"https://api.github.com/repos/KillTheMule/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KillTheMule/neovim/downloads","issues_url":"https://api.github.com/repos/KillTheMule/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/KillTheMule/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/KillTheMule/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/KillTheMule/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KillTheMule/neovim/labels{/name}","releases_url":"https://api.github.com/repos/KillTheMule/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/KillTheMule/neovim/deployments","created_at":"2016-04-07T17:28:12Z","updated_at":"2016-04-07T17:28:19Z","pushed_at":"2016-06-25T17:57:16Z","git_url":"git://github.com/KillTheMule/neovim.git","ssh_url":"git@github.com:KillTheMule/neovim.git","clone_url":"https://github.com/KillTheMule/neovim.git","svn_url":"https://github.com/KillTheMule/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":42470,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"7df9dd33a1497493bc1d78a533473684388c05b0","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":"Vim-fork focused on extensibility and agility.","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}","deployments_url":"https://api.github.com/repos/neovim/neovim/deployments","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-06-25T21:02:11Z","pushed_at":"2016-06-25T22:26:49Z","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":69863,"stargazers_count":19125,"watchers_count":19125,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1349,"mirror_url":null,"open_issues_count":711,"forks":1349,"open_issues":711,"watchers":19125,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4915"},"html":{"href":"https://github.com/neovim/neovim/pull/4915"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/4915"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/4915/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4915/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4915/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/51123b2385e77d718da03532f774ecdcab1247ba"}}}}
{"actor":{"display_login":"ZyX-I"}}