diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-15 09:19:27 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-15 09:19:27 -0300 |
commit | 5f24549ab1ecd69236be2761a2e43690ba7cf283 (patch) | |
tree | 7db3ba6961a7115c43e0133a6780f4a742112f05 /src/nvim/main.c | |
parent | 9b4f6fbd33ebd452d472b0333accfcb34e01173b (diff) | |
parent | 14ebe608e2d26ba352f5abe1c32ce18fcc2eca06 (diff) | |
download | rneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.tar.gz rneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.tar.bz2 rneovim-5f24549ab1ecd69236be2761a2e43690ba7cf283.zip |
Merge PR #1810 'abstract_ui fixes and improvements(continuation)'
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index f063cc1238..7ca26a6eba 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -261,10 +261,7 @@ int main(int argc, char **argv) if (params.want_full_screen && !silent_mode) { if (embedded_mode) { - // In embedded mode don't do terminal-related initializations, assume an - // initial screen size of 80x20 - full_screen = true; - screen_resize(80, 20, false); + // embedded mode implies abstract_ui termcapinit((uint8_t *)"abstract_ui"); } else { // set terminal name and get terminal capabilities (will set full_screen) @@ -278,7 +275,9 @@ int main(int argc, char **argv) event_init(); if (abstract_ui) { + full_screen = true; t_colors = 256; + T_CCO = (uint8_t *)"256"; } else { // Print a warning if stdout is not a terminal TODO(tarruda): Remove this // check once the new terminal UI is implemented |