{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/9027","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/9027/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/9027/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/9027/events","html_url":"https://github.com/neovim/neovim/issues/9027","id":362723341,"node_id":"MDU6SXNzdWUzNjI3MjMzNDE=","number":9027,"title":"Editing a file in silent mode suppresses the \"Found a swap file\" message but still waits for user input","user":{"login":"afn","id":2779422,"node_id":"MDQ6VXNlcjI3Nzk0MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/2779422?v=4","gravatar_id":"","url":"https://api.github.com/users/afn","html_url":"https://github.com/afn","followers_url":"https://api.github.com/users/afn/followers","following_url":"https://api.github.com/users/afn/following{/other_user}","gists_url":"https://api.github.com/users/afn/gists{/gist_id}","starred_url":"https://api.github.com/users/afn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afn/subscriptions","organizations_url":"https://api.github.com/users/afn/orgs","repos_url":"https://api.github.com/users/afn/repos","events_url":"https://api.github.com/users/afn/events{/privacy}","received_events_url":"https://api.github.com/users/afn/received_events","type":"User","site_admin":false},"labels":[{"id":77997474,"node_id":"MDU6TGFiZWw3Nzk5NzQ3NA==","url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"f9d0c4","default":true},{"id":843184430,"node_id":"MDU6TGFiZWw4NDMxODQ0MzA=","url":"https://api.github.com/repos/neovim/neovim/labels/vim-patch","name":"vim-patch","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T18:14:10Z","updated_at":"2018-09-21T20:27:52Z","closed_at":null,"author_association":"NONE","body":"- `nvim --version`: v0.3.2-566-gac4d5d993\r\n- Vim (version: 8.0.1453-1ubuntu1) behaves the same\r\n- Operating system/version: Linux\r\n- Terminal name/version: gnome-terminal 3.30.0\r\n- `$TERM`: xterm-256color\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n```\r\nnvim -u NORC foo.txt\r\n# suspend\r\nnvim -u NORC\r\n:silent! e foo.txt\r\n```\r\n\r\n### Actual behaviour\r\n\r\nThe \"Found a swap file\" attention message is suppressed, but neovim waits for user input (Enter, `O`, `E`, etc) before proceeding.\r\n\r\n### Expected behaviour\r\n\r\nI would expect one of the following:\r\n1. In silent mode, the swap message is suppressed and the file opens in read-only mode.\r\n2. Even in silent mode, the swap message is always shown, and it waits for user input.\r\n\r\nSee also https://github.com/junegunn/fzf/issues/1365 for the actual affected use case: when opening a file in fzf, silent mode is enabled implicitly by virtue of `shortmess` including the `F` flag, which causes the swap file message to be suppressed. So a possible third option, if this is really the desired behavior of `silent!`, would be to change the behavior only for the case where `msg_silent` is enabled by `SHM_FILEINFO`. (In fact, based on the documentation, I would expect `shortmess+=F` to behave like `:silent e foo.txt` --- which does NOT suppress the message --- rather than behaving like `:silent! e foo.txt`, which is what it currently does."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/423661245","html_url":"https://github.com/neovim/neovim/issues/9027#issuecomment-423661245","issue_url":"https://api.github.com/repos/neovim/neovim/issues/9027","id":423661245,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzY2MTI0NQ==","user":{"login":"justinmk","id":1359421,"node_id":"MDQ6VXNlcjEzNTk0MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1359421?v=4","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},"created_at":"2018-09-21T20:27:52Z","updated_at":"2018-09-21T20:27:52Z","author_association":"MEMBER","body":"https://github.com/neovim/neovim/pull/8898 is related but it's not enough, there's a missing redraw, possibly from one of the UI refactors in the last few weeks."}}
{"actor":{"display_login":"justinmk"}}