{"action":"created","issue":{"url":"https://api.github.com/repos/vim/vim/issues/850","repository_url":"https://api.github.com/repos/vim/vim","labels_url":"https://api.github.com/repos/vim/vim/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/vim/vim/issues/850/comments","events_url":"https://api.github.com/repos/vim/vim/issues/850/events","html_url":"https://github.com/vim/vim/issues/850","id":158716749,"number":850,"title":"`:caddexpr` doesn't remember directories entered (and left)","user":{"login":"LucHermitte","id":501871,"avatar_url":"https://avatars.githubusercontent.com/u/501871?v=3","gravatar_id":"","url":"https://api.github.com/users/LucHermitte","html_url":"https://github.com/LucHermitte","followers_url":"https://api.github.com/users/LucHermitte/followers","following_url":"https://api.github.com/users/LucHermitte/following{/other_user}","gists_url":"https://api.github.com/users/LucHermitte/gists{/gist_id}","starred_url":"https://api.github.com/users/LucHermitte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucHermitte/subscriptions","organizations_url":"https://api.github.com/users/LucHermitte/orgs","repos_url":"https://api.github.com/users/LucHermitte/repos","events_url":"https://api.github.com/users/LucHermitte/events{/privacy}","received_events_url":"https://api.github.com/users/LucHermitte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-06T16:15:59Z","updated_at":"2016-08-10T11:11:03Z","closed_at":null,"body":"Note: The long term objective is to call `:caddexpr` on the text received through `job_start()` callback.\r\n\r\nGiven the current directory that contains: `tests/caddexpr-directory.vim` which is the script being executed.\r\n\r\nThe following doesn't work as expected. While `Entering directory` is correctly processed when the qflist is build from several lines, the current directory information is lost in between two calls to `:caddexpr`.\r\n\r\nThe following Minimal Working Example demonstrates the problem.\r\n\r\n```vim\r\nlet s:file = expand('<sfile>:.')\r\nlet s:dir = expand('<sfile>:.:h')\r\n\r\nlet s:messages = [\r\n      \\ s:file . ':5: in the correct directory',\r\n      \\ \"vim[1]: Entering directory '\".s:dir.\"'\",\r\n      \\ expand('<sfile>:t').':7: Not in the correct directory',\r\n      \\ \"vim[1]: Leaving directory '\".s:dir.\"'\",\r\n      \\ ]\r\n\r\nfunction! s:RunMultipleAddexpr()\r\n  echomsg \"Multiple uses of caddexpr\"\r\n  call setqflist([])\r\n  for msg in s:messages\r\n    caddexpr msg\r\n  endfor\r\n  copen\r\n\r\n  let qf = getqflist()\r\n  call assert_equal(s:file, bufname(qf[2].bufnr))\r\nendfunction\r\n\r\nfunction! s:RunOneAddexpr()\r\n  echomsg \"Single use of caddexpr\"\r\n  call setqflist([])\r\n  caddexpr s:messages\r\n  copen\r\n\r\n  let qf = getqflist()\r\n  call assert_equal(s:file, bufname(qf[2].bufnr))\r\nendfunction\r\n\r\nlet v:errors = []\r\ncall s:RunOneAddexpr()\r\ncall s:RunMultipleAddexpr()\r\nechomsg join(v:errors, \"\\n\")\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/vim/vim/issues/comments/238836362","html_url":"https://github.com/vim/vim/issues/850#issuecomment-238836362","issue_url":"https://api.github.com/repos/vim/vim/issues/850","id":238836362,"user":{"login":"LucHermitte","id":501871,"avatar_url":"https://avatars.githubusercontent.com/u/501871?v=3","gravatar_id":"","url":"https://api.github.com/users/LucHermitte","html_url":"https://github.com/LucHermitte","followers_url":"https://api.github.com/users/LucHermitte/followers","following_url":"https://api.github.com/users/LucHermitte/following{/other_user}","gists_url":"https://api.github.com/users/LucHermitte/gists{/gist_id}","starred_url":"https://api.github.com/users/LucHermitte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucHermitte/subscriptions","organizations_url":"https://api.github.com/users/LucHermitte/orgs","repos_url":"https://api.github.com/users/LucHermitte/repos","events_url":"https://api.github.com/users/LucHermitte/events{/privacy}","received_events_url":"https://api.github.com/users/LucHermitte/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T11:11:03Z","updated_at":"2016-08-10T11:11:03Z","body":"This issue seems to have been fixed. Do you remember the patch number that have fixed it?"}}
{"actor":{"display_login":"LucHermitte"}}