diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-13 12:06:01 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:17:39 -0300 |
commit | e0e41b30c61922e099a067ac5c137e745699a1aa (patch) | |
tree | d4cbc2313612e5f6bc135ceb8cf520cd19b89b20 /src/nvim/strings.c | |
parent | 6383ea6e8e14350432f1fc7da519b54d0ed67f8c (diff) | |
download | rneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.tar.gz rneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.tar.bz2 rneovim-e0e41b30c61922e099a067ac5c137e745699a1aa.zip |
ui: Remove/adapt some old code for a big UI refactor
- Remove abstract_ui global, now it is always active
- Remove some terminal handling code
- Remove unused functions
- Remove HAVE_TGETENT/TERMINFO/TERMIOS/IOCTL #ifdefs
- Remove tgetent/terminfo from version.c
- Remove curses/terminfo dependencies
- Only start/stop termcap when starting/exiting the program
- msg_use_printf will return true if there are no attached UIs(
messages will be written to stdout)
- Remove `ex_winpos`(implement `:winpos` with `ex_ni`)
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 20fa35ed1c..2a0014c6c1 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -301,17 +301,6 @@ void del_trailing_spaces(char_u *ptr) } /* - * Like strncpy(), but always terminate the result with one NUL. - * "to" must be "len + 1" long! - */ -void vim_strncpy(char_u *restrict to, const char_u *restrict from, size_t len) - FUNC_ATTR_NONNULL_ALL -{ - STRNCPY(to, from, len); - to[len] = NUL; -} - -/* * Like strcat(), but make sure the result fits in "tosize" bytes and is * always NUL terminated. */ |