{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/1412","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/1412/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/1412/events","html_url":"https://github.com/tmux/tmux/issues/1412","id":343745917,"node_id":"MDU6SXNzdWUzNDM3NDU5MTc=","number":1412,"title":"Sequencing problem between display-pane+capture-pane and show-buffer","user":{"login":"chreekat","id":538538,"node_id":"MDQ6VXNlcjUzODUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/538538?v=4","gravatar_id":"","url":"https://api.github.com/users/chreekat","html_url":"https://github.com/chreekat","followers_url":"https://api.github.com/users/chreekat/followers","following_url":"https://api.github.com/users/chreekat/following{/other_user}","gists_url":"https://api.github.com/users/chreekat/gists{/gist_id}","starred_url":"https://api.github.com/users/chreekat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chreekat/subscriptions","organizations_url":"https://api.github.com/users/chreekat/orgs","repos_url":"https://api.github.com/users/chreekat/repos","events_url":"https://api.github.com/users/chreekat/events{/privacy}","received_events_url":"https://api.github.com/users/chreekat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-23T18:32:21Z","updated_at":"2018-08-01T18:37:50Z","closed_at":null,"author_association":"NONE","body":"## Steps to reproduce (running with `-f/dev/null`)\r\n\r\n```\r\n$ tmux display-panes -d 0 'capture-pane -t %%'; tmux show-buffer | head\r\n                      «press 0 to select the pane»\r\nno buffers\r\n```\r\n\r\n## Expected behavior\r\nI expect the buffer to be filled before show-buffer is run.\r\n\r\nIf display-panes' command is asynchronous, perhaps there could be a way to block on it?\r\n\r\nNote that `tmux capture-pane -t 0; tmux show-buffer` works fine.\r\n\r\n## Workaround\r\n\r\nJust sleep for a second between the capture and the show. :frowning_face: \r\n\r\n## Versions\r\n\r\n```\r\n$ uname -sp && tmux -V && echo $TERM\r\nLinux unknown\r\ntmux 2.7-rc\r\nscreen\r\n```\r\nI'm using tmux from NixOS, and see the same behavior on tmux 2.6 (from [nixpkgs@9e1d8b747060](https://github.com/NixOS/nixpkgs/tree/9e1d8b7470606387555c6b7e4dc62763f0594757)) and tmux 2.7-rc (from [nixpkgs@dae9cf6106da](https://github.com/NixOS/nixpkgs/tree/dae9cf6106da19f79a39714f183ed253c62b32c5)).\r\n\r\n## Screenshot\r\n![image](https://user-images.githubusercontent.com/538538/43095348-88090fb8-8e83-11e8-9724-4b99e8a54031.png)\r\n\r\n## Logs\r\nCan be provided if needed."},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/409678641","html_url":"https://github.com/tmux/tmux/issues/1412#issuecomment-409678641","issue_url":"https://api.github.com/repos/tmux/tmux/issues/1412","id":409678641,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTY3ODY0MQ==","user":{"login":"nicm","id":304243,"node_id":"MDQ6VXNlcjMwNDI0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/304243?v=4","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T18:37:50Z","updated_at":"2018-08-01T18:37:50Z","author_association":"CONTRIBUTOR","body":"I think this is enough [x.diff.txt](https://github.com/tmux/tmux/files/2250692/x.diff.txt). I wonder if we need a -b flag like run-shell, although I can't see any reason why.\r\n\r\n"}}
{"actor":{"display_login":"nicm"}}