aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-13 12:06:01 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:17:39 -0300
commite0e41b30c61922e099a067ac5c137e745699a1aa (patch)
treed4cbc2313612e5f6bc135ceb8cf520cd19b89b20 /src/nvim/ex_getln.c
parent6383ea6e8e14350432f1fc7da519b54d0ed67f8c (diff)
downloadrneovim-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/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 2855f0cc12..6a3bd16feb 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -4618,35 +4618,6 @@ int del_history_idx(int histype, int idx)
return TRUE;
}
-
-/*
- * Very specific function to remove the value in ":set key=val" from the
- * history.
- */
-void remove_key_from_history(void)
-{
- char_u *p;
- int i;
-
- i = hisidx[HIST_CMD];
- if (i < 0)
- return;
- p = history[HIST_CMD][i].hisstr;
- if (p != NULL)
- for (; *p; ++p)
- if (STRNCMP(p, "key", 3) == 0 && !isalpha(p[3])) {
- p = vim_strchr(p + 3, '=');
- if (p == NULL)
- break;
- ++p;
- for (i = 0; p[i] && !vim_iswhite(p[i]); ++i)
- if (p[i] == '\\' && p[i + 1])
- ++i;
- STRMOVE(p, p + i);
- --p;
- }
-}
-
/*
* Get indices "num1,num2" that specify a range within a list (not a range of
* text lines in a buffer!) from a string. Used for ":history" and ":clist".