summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-04-12 18:48:35 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-12 18:53:08 +0200
commite74cad3321ce1dcefc1fc64f617511275b6cd930 (patch)
treeb29c4a7843c748750a448800846bbff1b1dfde19 /src/charset.c
parenta1dcd76ce791b5b8bd093765a99b71aa163300a5 (diff)
patch 9.1.0312: heredocs are not supported for :commandsv9.1.0312
Problem: heredocs are not supported for :commands (@balki) Solution: Add heredoc support (Yegappan Lakshmanan) fixes: #14491 closes: #14528 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index 470698f0e0..4dcde149f3 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -2089,6 +2089,17 @@ skiptowhite(char_u *p)
}
/*
+ * skiptowhite: skip over text until ' ' or '\t' or newline or NUL.
+ */
+ char_u *
+skiptowhite_or_nl(char_u *p)
+{
+ while (*p != ' ' && *p != '\t' && *p != NL && *p != NUL)
+ ++p;
+ return p;
+}
+
+/*
* skiptowhite_esc: Like skiptowhite(), but also skip escaped chars
*/
char_u *