aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:47:56 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-21 05:08:21 -0300
commit3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9 (patch)
treeefe4b555876d04dc4b80d583bcd465d76920cdd7 /src/nvim/search.c
parent486d2e944dffb30d97d65c88bbcc77f6fd1208f6 (diff)
downloadrneovim-3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9.tar.gz
rneovim-3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9.tar.bz2
rneovim-3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9.zip
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
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 095d7484a5..3b8f0bb6ba 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -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 != '\\')