[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4] src/pk-repl.c (escape_metacharacters) Add comment.
From: |
John Darrington |
Subject: |
[PATCH 4/4] src/pk-repl.c (escape_metacharacters) Add comment. |
Date: |
Sat, 2 May 2020 10:59:00 +0200 |
---
src/pk-repl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/pk-repl.c b/src/pk-repl.c
index d30b682e..44e5b120 100644
--- a/src/pk-repl.c
+++ b/src/pk-repl.c
@@ -212,6 +212,9 @@ poke_sigint_handler (int status)
siglongjmp(ctrlc_buf, 1);
}
+/* Return a copy of TEXT, with every instance of the space character
+ prepended with the backslash character. The caller is responsible
+ for freeing the result. */
static char *
escape_metacharacters (char *text, int match_type, char *qp)
{
--
2.20.1