diff options
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 9b48398d96..7ff69a3d41 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -146,10 +146,6 @@ struct dbg_stuff { # define gui_mch_find_dialog ex_ni # define gui_mch_replace_dialog ex_ni # define ex_helpfind ex_ni -#if defined(FEAT_GUI) || defined(UNIX) || defined(MSWIN) -#else -# define ex_winpos ex_ni -#endif static int did_lcd; /* whether ":lcd" was produced for a session */ #ifndef HAVE_WORKING_LIBINTL # define ex_language ex_ni @@ -5397,13 +5393,11 @@ static void ex_stop(exarg_T *eap) windgoto((int)Rows - 1, 0); out_char('\n'); out_flush(); - stoptermcap(); out_flush(); /* needed for SUN to restore xterm buffer */ mch_restore_title(3); /* restore window titles */ ui_suspend(); /* call machine specific function */ maketitle(); resettitle(); /* force updating the title */ - starttermcap(); scroll_start(); /* scroll screen before redrawing */ redraw_later_clear(); shell_resized(); /* may have resized window */ @@ -6438,7 +6432,7 @@ static void ex_winsize(exarg_T *eap) p = arg; h = getdigits_int(&arg); if (*p != NUL && *arg == NUL) - screen_resize(w, h, TRUE); + screen_resize(w, h); else EMSG(_("E465: :winsize requires two number arguments")); } @@ -6473,35 +6467,6 @@ static void ex_wincmd(exarg_T *eap) } } -#if defined(FEAT_GUI) || defined(UNIX) || defined(MSWIN) -/* - * ":winpos". - */ -static void ex_winpos(exarg_T *eap) -{ - int x, y; - char_u *arg = eap->arg; - char_u *p; - - if (*arg == NUL) { - EMSG(_("E188: Obtaining window position not implemented for this platform")); - } else { - x = getdigits_int(&arg); - arg = skipwhite(arg); - p = arg; - y = getdigits_int(&arg); - if (*p == NUL || *arg != NUL) { - EMSG(_("E466: :winpos requires two number arguments")); - return; - } -# ifdef HAVE_TGETENT - if (*T_CWP) - term_set_winpos(x, y); -# endif - } -} -#endif - /* * Handle command that work like operators: ":delete", ":yank", ":>" and ":<". */ |