{"action":"created","issue":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1726","repository_url":"https://api.github.com/repos/vim-airline/vim-airline","labels_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1726/labels{/name}","comments_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1726/comments","events_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1726/events","html_url":"https://github.com/vim-airline/vim-airline/issues/1726","id":324740391,"number":1726,"title":"E315: ml_get Error detected while processing function airline#check_mode","user":{"login":"blayz3r","id":12205650,"avatar_url":"https://avatars2.githubusercontent.com/u/12205650?v=4","gravatar_id":"","url":"https://api.github.com/users/blayz3r","html_url":"https://github.com/blayz3r","followers_url":"https://api.github.com/users/blayz3r/followers","following_url":"https://api.github.com/users/blayz3r/following{/other_user}","gists_url":"https://api.github.com/users/blayz3r/gists{/gist_id}","starred_url":"https://api.github.com/users/blayz3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blayz3r/subscriptions","organizations_url":"https://api.github.com/users/blayz3r/orgs","repos_url":"https://api.github.com/users/blayz3r/repos","events_url":"https://api.github.com/users/blayz3r/events{/privacy}","received_events_url":"https://api.github.com/users/blayz3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-20T20:33:42Z","updated_at":"2018-05-22T16:49:11Z","closed_at":null,"author_association":"NONE","body":"#### environment\r\n\r\n- vim: 8.1\r\n- vim-airline: ????\r\n- OS: Windows 10\r\n- Have you reproduced with a minimal vimrc: ???\r\n- What is your airline configuration: ???\r\nif you are using terminal:\r\n- terminal: n/a\r\n- $TERM variable: n/a\r\n- color configuration (:set t_Co?):\r\nif you are using Neovim:\r\n- does it happen in Vim: n/a\r\n\r\n\r\n\r\n#### actual behavior\r\nNvim-R is a plugin that sends R code to a terminal. When I upgraded to vim 8.1 I get the following error from \r\nE315: ml_get: invalid lnum: 28\r\nError detected while processing function airline#check_mode:\r\nline   23:\r\nE16: Invalid range:     call add(l:mode, 'modified')\r\nline   39:\r\nE16: Invalid range:     call add(l:mode, 'readonly')\r\nline   44:\r\nE16: Invalid range:     call airline#highlighter#highlight_modified_inactive(context.bufnr)\r\nline   45:\r\nE16: Invalid range:     call airline#highlighter#highlight(l:mode, context.bufnr)\r\n10 lines yanked into \"+\r\n\r\n![2018-05-20_16-28-13](https://user-images.githubusercontent.com/12205650/40283356-d8dc1202-5c4a-11e8-8715-e8cfba43906f.png)\r\n\r\n#### expected behavior\r\n\r\nNo error messages\r\n"},"comment":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/comments/391061863","html_url":"https://github.com/vim-airline/vim-airline/issues/1726#issuecomment-391061863","issue_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1726","id":391061863,"user":{"login":"jalvesaq","id":891655,"avatar_url":"https://avatars3.githubusercontent.com/u/891655?v=4","gravatar_id":"","url":"https://api.github.com/users/jalvesaq","html_url":"https://github.com/jalvesaq","followers_url":"https://api.github.com/users/jalvesaq/followers","following_url":"https://api.github.com/users/jalvesaq/following{/other_user}","gists_url":"https://api.github.com/users/jalvesaq/gists{/gist_id}","starred_url":"https://api.github.com/users/jalvesaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalvesaq/subscriptions","organizations_url":"https://api.github.com/users/jalvesaq/orgs","repos_url":"https://api.github.com/users/jalvesaq/repos","events_url":"https://api.github.com/users/jalvesaq/events{/privacy}","received_events_url":"https://api.github.com/users/jalvesaq/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T16:49:11Z","updated_at":"2018-05-22T16:49:11Z","author_association":"NONE","body":"The first time that you try to install a package in R it says that /usr/local is not writable and asks if you want to create the directory `~/R`. Nvim-R does the same question if the `~R/` directory doesn't exist yet. The complete question is\r\n\r\n```\r\n\"/usr/local/lib/R/library\" is not writable. Should \"~/R/x86_64-pc-linux-gnu-library/3.5\" be created now? [y/n]\r\n```\r\n\r\nand you should just type <kbd>y</kbd> and press <kbd>Enter</kbd>."}}
{"actor":{"display_login":"jalvesaq"}}