mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
refactor: Remove term modules and termcap options
- Removed term.c, term.h and term_defs.h - Tests for T_* values were removed. screen.c was simplified as a consequence(the best strategy for drawing is implemented in the UI layer) - Redraw functions now call ui.c functions directly. Updates are flushed with `ui_flush()` - Removed all termcap options(they now return empty strings for compatibility) - &term/&ttybuiltin options return a constant value(nvim) - &t_Co is still available, but it mirrors t_colors directly - Remove cursor tracking from screen.c and the `screen_start` function. Now the UI is expected to maintain cursor state across any call, and reset it when resized. - Remove unused code
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
#include "nvim/regexp.h"
|
||||
#include "nvim/screen.h"
|
||||
#include "nvim/strings.h"
|
||||
#include "nvim/term.h"
|
||||
#include "nvim/ui.h"
|
||||
#include "nvim/window.h"
|
||||
#include "nvim/os/time.h"
|
||||
@@ -1089,7 +1088,7 @@ int do_search(
|
||||
free(msgbuf);
|
||||
|
||||
gotocmdline(FALSE);
|
||||
out_flush();
|
||||
ui_flush();
|
||||
msg_nowait = TRUE; /* don't wait for this message */
|
||||
}
|
||||
}
|
||||
@@ -2045,8 +2044,8 @@ showmatch (
|
||||
p_siso = 0; /* don't use 'sidescrolloff' here */
|
||||
showruler(FALSE);
|
||||
setcursor();
|
||||
cursor_on(); /* make sure that the cursor is shown */
|
||||
out_flush();
|
||||
ui_cursor_on(); /* make sure that the cursor is shown */
|
||||
ui_flush();
|
||||
/* Restore dollar_vcol(), because setcursor() may call curs_rows()
|
||||
* which resets it if the matching position is in a previous line
|
||||
* and has a higher column number. */
|
||||
@@ -4156,7 +4155,7 @@ find_pattern_in_path (
|
||||
MSG_PUTS(_(" NOT FOUND"));
|
||||
}
|
||||
}
|
||||
out_flush(); /* output each line directly */
|
||||
ui_flush(); /* output each line directly */
|
||||
}
|
||||
|
||||
if (new_fname != NULL) {
|
||||
@@ -4555,7 +4554,7 @@ static void show_pat_in_path(char_u *line, int type, int did_show, int action, F
|
||||
MSG_PUTS(" ");
|
||||
}
|
||||
msg_prt_line(line, FALSE);
|
||||
out_flush(); /* show one line at a time */
|
||||
ui_flush(); /* show one line at a time */
|
||||
|
||||
/* Definition continues until line that doesn't end with '\' */
|
||||
if (got_int || type != FIND_DEFINE || p < line || *p != '\\')
|
||||
|
Reference in New Issue
Block a user