diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 14:10:42 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-11-27 14:27:18 -0300 |
commit | 1865b8c1c115b639a4a12b5a9cb287a62a82ac76 (patch) | |
tree | 2fc64d750f64cc0139651168bd09e25ad15b7947 /src/nvim/fileio.c | |
parent | 541eaf598c25e0b853ef441b57c9f7d1bbf3450c (diff) | |
download | rneovim-1865b8c1c115b639a4a12b5a9cb287a62a82ac76.tar.gz rneovim-1865b8c1c115b639a4a12b5a9cb287a62a82ac76.tar.bz2 rneovim-1865b8c1c115b639a4a12b5a9cb287a62a82ac76.zip |
ui: Remove ui_delay, ui_breakcheck and ui_set_shellsize
These functions only used to call another os_* function, so remove them and
replace all occurences in the project.
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 97a357bff7..f2c3afe9a6 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -57,6 +57,8 @@ #include "nvim/undo.h" #include "nvim/window.h" #include "nvim/os/os.h" +#include "nvim/os/time.h" +#include "nvim/os/input.h" #if defined(HAVE_UTIME) && defined(HAVE_UTIME_H) # include <utime.h> /* for struct utimbuf */ @@ -1704,7 +1706,7 @@ rewind_retry: } } linerest = (long)(ptr - line_start); - ui_breakcheck(); + os_breakcheck(); } failed: @@ -2927,7 +2929,7 @@ buf_write ( "E506: Can't write to backup file (add ! to override)"); break; } - ui_breakcheck(); + os_breakcheck(); if (got_int) { errmsg = (char_u *)_(e_interr); break; @@ -3377,7 +3379,7 @@ restore_backup: s = buffer; len = 0; - ui_breakcheck(); + os_breakcheck(); if (got_int) { end = 0; /* Interrupted, break loop */ break; @@ -4958,7 +4960,7 @@ buf_check_timestamp ( if (emsg_silent == 0) { out_flush(); /* give the user some time to think about it */ - ui_delay(1000L, true); + os_delay(1000L, true); /* don't redraw and erase the message */ redraw_cmdline = FALSE; |