{"action":"created","issue":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1914","repository_url":"https://api.github.com/repos/vim-airline/vim-airline","labels_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1914/labels{/name}","comments_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1914/comments","events_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1914/events","html_url":"https://github.com/vim-airline/vim-airline/issues/1914","id":440690763,"node_id":"MDU6SXNzdWU0NDA2OTA3NjM=","number":1914,"title":"setqflist causes current window \"focus\" to switch and not be restored","user":{"login":"myitcv","id":3374574,"node_id":"MDQ6VXNlcjMzNzQ1NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3374574?v=4","gravatar_id":"","url":"https://api.github.com/users/myitcv","html_url":"https://github.com/myitcv","followers_url":"https://api.github.com/users/myitcv/followers","following_url":"https://api.github.com/users/myitcv/following{/other_user}","gists_url":"https://api.github.com/users/myitcv/gists{/gist_id}","starred_url":"https://api.github.com/users/myitcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myitcv/subscriptions","organizations_url":"https://api.github.com/users/myitcv/orgs","repos_url":"https://api.github.com/users/myitcv/repos","events_url":"https://api.github.com/users/myitcv/events{/privacy}","received_events_url":"https://api.github.com/users/myitcv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-05-06T13:06:37Z","updated_at":"2019-05-07T13:21:13Z","closed_at":null,"author_association":"NONE","body":"Raising here per @chrisbra off the back of https://github.com/vim/vim/issues/4278\r\n\r\n#### environment\r\n\r\n- vim\r\n\r\n```\r\nVIM - Vi IMproved 8.1 (2018 May 18, compiled May  6 2019 12:23:11)\r\nIncluded patches: 1-1282\r\nCompiled by myitcv@myitcv\r\nHuge version with GTK2 GUI.  Features included (+) or not (-):\r\n+acl               +cmdline_info      -farsi             +libcall           -mouse_sysmouse    -python3           +termguicolors     +vreplace\r\n+arabic            +comments          +file_in_path      +linebreak         +mouse_urxvt       +quickfix          +terminal          +wildignore\r\n+autocmd           +conceal           +find_in_path      +lispindent        +mouse_xterm       +reltime           +terminfo          +wildmenu\r\n+autochdir         +cryptv            +float             +listcmds          +multi_byte        +rightleft         +termresponse      +windows\r\n-autoservername    +cscope            +folding           +localmap          +multi_lang        -ruby              +textobjects       +writebackup\r\n+balloon_eval      +cursorbind        -footer            +lua               -mzscheme          +scrollbind        +textprop          +X11\r\n+balloon_eval_term +cursorshape       +fork()            +menu              -netbeans_intg     +signs             +timers            -xfontset\r\n+browse            +dialog_con_gui    +gettext           +mksession         +num64             +smartindent       +title             +xim\r\n++builtin_terms    +diff              -hangul_input      +modify_fname      +packages          +startuptime       +toolbar           +xpm\r\n+byte_offset       +digraphs          +iconv             +mouse             +path_extra        +statusline        +user_commands     +xsmp_interact\r\n+channel           +dnd               +insert_expand     +mouseshape        -perl              -sun_workshop      +vartabs           +xterm_clipboard\r\n+cindent           -ebcdic            +job               +mouse_dec         +persistent_undo   +syntax            +vertsplit         -xterm_save\r\n+clientserver      +emacs_tags        +jumplist          -mouse_gpm         +postscript        +tag_binary        +virtualedit\r\n+clipboard         +eval              +keymap            -mouse_jsbterm     +printer           -tag_old_static    +visual\r\n+cmdline_compl     +ex_extra          +lambda            +mouse_netterm     +profile           -tag_any_white     +visualextra\r\n+cmdline_hist      +extra_search      +langmap           +mouse_sgr         +python            -tcl               +viminfo\r\n   system vimrc file: \"$VIM/vimrc\"\r\n     user vimrc file: \"$HOME/.vimrc\"\r\n 2nd user vimrc file: \"~/.vim/vimrc\"\r\n      user exrc file: \"$HOME/.exrc\"\r\n  system gvimrc file: \"$VIM/gvimrc\"\r\n    user gvimrc file: \"$HOME/.gvimrc\"\r\n2nd user gvimrc file: \"~/.vim/gvimrc\"\r\n       defaults file: \"$VIMRUNTIME/defaults.vim\"\r\n    system menu file: \"$VIMRUNTIME/menu.vim\"\r\n  fall-back for $VIM: \"/home/myitcv/usr/vim/share/vim\"\r\nCompilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-\r\nunix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr\r\n/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0\r\n -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16   -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE\r\n=1\r\nLinking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1\r\n.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl   -ldl  -L/usr/lib/x86_64-lin\r\nux-gnu -lluajit-5.1  -L/home/myitcv/.pythons/2.7.15/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic\r\n```\r\n\r\n- vim-airline: 1fedd3a2b7d241bd71485e77cdd86cf219712698\r\n- OS: Ubuntu 19.04\r\n- Have you reproduced with a minimal vimrc: Yes - see below\r\n- What is your airline configuration: defaults only\r\nif you are using terminal:\r\n- terminal: `XTerm(330)`\r\n- $TERM variable: `xterm-256color`\r\n- color configuration (:set t_Co?): `t_Co=256`\r\nif you are using Neovim:\r\n- does it happen in Vim: n/a\r\n\r\n#### actual behavior\r\n\r\nRepro with (happen to be using `vim-plug`):\r\n\r\n```\r\ncall plug#begin('~/.vim/plugged')\r\n\r\nPlug 'bling/vim-airline'\r\nPlug 'vim-airline/vim-airline-themes'\r\n\r\ncall plug#end()\r\n\r\nfunction PopulateQF()\r\n  call setqflist([{'bufnr': 1, 'lnum': 1, 'col': 1, 'text': 'this is a test'.strftime(\"%Y%m%d_%H%M_%S\")}])\r\nendfunction\r\n\r\nset updatetime=500\r\n\r\nau CursorHold,CursorHoldI * call PopulateQF()\r\n```\r\n\r\nOpen Vim. Run `:copen`. Notice an entry appears in the quickfix window. \r\n\r\nHit \"<Return>\" to jump to that entry. \r\n\r\nNotice the window \"focus\" as indicated by the vim-airline per-window status bar switch to the non-quick fix window, then after 500ms jump back to the quickfix window.\r\n\r\nObserve however that the cursor focus remains in the non-quickfix window.\r\n\r\nSee demo of repro in https://www.youtube.com/watch?v=Bd1ndtrVx1A\r\n\r\nAlso see https://github.com/vim/vim/issues/4278#issuecomment-489551552 and https://github.com/vim/vim/issues/4278#issuecomment-489552141 for clarifying questions about what's happening in the demo.\r\n\r\n#### expected behavior\r\n\r\nThe window \"focus\" as indicated by the vim-airline per-window status bar to follow the cursor focus.\r\n"},"comment":{"url":"https://api.github.com/repos/vim-airline/vim-airline/issues/comments/490076551","html_url":"https://github.com/vim-airline/vim-airline/issues/1914#issuecomment-490076551","issue_url":"https://api.github.com/repos/vim-airline/vim-airline/issues/1914","id":490076551,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MDA3NjU1MQ==","user":{"login":"myitcv","id":3374574,"node_id":"MDQ6VXNlcjMzNzQ1NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3374574?v=4","gravatar_id":"","url":"https://api.github.com/users/myitcv","html_url":"https://github.com/myitcv","followers_url":"https://api.github.com/users/myitcv/followers","following_url":"https://api.github.com/users/myitcv/following{/other_user}","gists_url":"https://api.github.com/users/myitcv/gists{/gist_id}","starred_url":"https://api.github.com/users/myitcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myitcv/subscriptions","organizations_url":"https://api.github.com/users/myitcv/orgs","repos_url":"https://api.github.com/users/myitcv/repos","events_url":"https://api.github.com/users/myitcv/events{/privacy}","received_events_url":"https://api.github.com/users/myitcv/received_events","type":"User","site_admin":false},"created_at":"2019-05-07T13:21:13Z","updated_at":"2019-05-07T13:21:13Z","author_association":"NONE","body":"Ah, sorry, my misunderstanding. "}}
{"actor":{"display_login":"myitcv"}}