mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #4155 from justinmk/gui_running
ui: revert "gui_running" hack
This commit is contained in:
commit
add02b675d
@ -10988,8 +10988,6 @@ static void f_has(typval_T *argvars, typval_T *rettv)
|
|||||||
#endif
|
#endif
|
||||||
} else if (STRICMP(name, "syntax_items") == 0) {
|
} else if (STRICMP(name, "syntax_items") == 0) {
|
||||||
n = syntax_present(curwin);
|
n = syntax_present(curwin);
|
||||||
} else if (STRICMP(name, "gui_running") == 0) {
|
|
||||||
n = ui_rgb_attached();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,15 +14,6 @@ describe('color scheme compatibility', function()
|
|||||||
request('vim_set_option', 't_Co', '88')
|
request('vim_set_option', 't_Co', '88')
|
||||||
eq('88', request('vim_eval', '&t_Co'))
|
eq('88', request('vim_eval', '&t_Co'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('emulates gui_running when a rgb UI is attached', function()
|
|
||||||
eq(0, request('vim_eval', 'has("gui_running")'))
|
|
||||||
local screen = Screen.new()
|
|
||||||
screen:attach()
|
|
||||||
eq(1, request('vim_eval', 'has("gui_running")'))
|
|
||||||
screen:detach()
|
|
||||||
eq(0, request('vim_eval', 'has("gui_running")'))
|
|
||||||
end)
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user