I am working on a plugin and as part of that plugin I am trying to update the statusline with setlocal statusline=%!GetMPCStatusline(). But this causes vimrun.exe to open and close very fast. This happens only when I focus in the window where the statusline is set and not the others. I am attaching this screen grab of Vimrun.exe opening and closing. It just keeps happening in the background but it doesn't open anything. So, Why is this happening and what can I do to make this stop?PS: I am using GVim 7.4 on Windows. Edit: I just tried this in the terminal Vim (powershell) and Vim in cygwin. There even though I am not getting this, something weird is happening there too. The cursor moves really really slow as if something is obstructing it.Edit 2: This is the function its calling. It gets the output from the mpc status, mpc playlist command and parses them. When I run this function manually I can see the vimrun on the taskbar once and it disappears after that. function! GetMPCStatusline()    let cmd = mpc status    let result = split(system(cmd), '\n')    let status = len(result) == 3 ? result[2] : result[0]    let [s:count, s:settings] =                \ [len(split(system('mpc playlist'), '\n')),                \ split(status, '   ')]    let s:statusline =                  \ . s:settings[1] .  ---                 \ . s:settings[2] .  ---%=                \ . s:count .  songs     return s:statuslineendfunctionEdit 3: This doesn't happen when I have another function for the statusline. So, the only thing common in all the above tests is the statusline function above and hence I guess that has to be the reason why this is happening. Any ideas on why that is the case?
Vimrun.exe keeps opening and closing when statusline is updated
gvim;microsoft windows;statusline;functions