summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-30 19:27:25 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-30 19:27:25 +0200
commit88c8c547d5fc380e5685c2b01ec564ccdf9b259a (patch)
tree4a0dfe9ddf254048b5b61a22e1f50306c808ef59 /src/structs.h
parent32a5faa6d7592795c6ec77e44dc0357b92b8a681 (diff)
patch 9.1.0451: No test for escaping '<' with shellescape()v9.1.0451
Problem: No test for escaping '<' with shellescape() Solution: Add a test. Use memcpy() in code to make it easier to understand. Fix a typo (zeertzjq). closes: #14876 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index b5341e3bad..804581bf1b 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4795,7 +4795,7 @@ typedef struct soffset
typedef struct spat
{
char_u *pat; // the pattern (in allocated memory) or NULL
- size_t patlen; // the length of the patten (0 is pat is NULL)
+ size_t patlen; // the length of the pattern (0 if pat is NULL)
int magic; // magicness of the pattern
int no_scs; // no smartcase for this pattern
soffset_T off;