diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2014-04-14 14:13:56 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-16 09:35:18 -0300 |
commit | 0e1e9148a3b8d33bf74ebee9e88f22f69f723072 (patch) | |
tree | 65ef4feb023b245d3de5849d9e63dac322808234 /src/ex_docmd.c | |
parent | d322be894e532e9148979ab10f3e277f1f359eb1 (diff) | |
download | rneovim-0e1e9148a3b8d33bf74ebee9e88f22f69f723072.tar.gz rneovim-0e1e9148a3b8d33bf74ebee9e88f22f69f723072.tar.bz2 rneovim-0e1e9148a3b8d33bf74ebee9e88f22f69f723072.zip |
vim-patch:7.4.232
Problem: ":%s/\n//" uses a lot of memory. (Aidan Marlin)
Solution: Turn this into a join command. (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=845608965bd9d0b2755997a7be812746885ff105
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 542a49f465..225bc747b8 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -182,7 +182,6 @@ static void ex_winpos(exarg_T *eap); static void ex_operators(exarg_T *eap); static void ex_put(exarg_T *eap); static void ex_copymove(exarg_T *eap); -static void ex_may_print(exarg_T *eap); static void ex_submagic(exarg_T *eap); static void ex_join(exarg_T *eap); static void ex_at(exarg_T *eap); @@ -6906,7 +6905,7 @@ static void ex_copymove(exarg_T *eap) /* * Print the current line if flags were given to the Ex command. */ -static void ex_may_print(exarg_T *eap) +void ex_may_print(exarg_T *eap) { if (eap->flags != 0) { print_line(curwin->w_cursor.lnum, (eap->flags & EXFLAG_NR), |