From 0e1e9148a3b8d33bf74ebee9e88f22f69f723072 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 14 Apr 2014 14:13:56 +0200 Subject: 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 --- src/ex_docmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ex_docmd.c') 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), -- cgit