patch 8.2.1364: invalid memory access when searching for raw string

Problem:    Invalid memory access when searching for raw string.
Solution:   Check for delimiter match before following quote. (closes #6578)
diff --git a/src/search.c b/src/search.c
index 91a26dd..7391ab0 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1928,8 +1928,8 @@
 	{
 	    if (lnum == endpos->lnum && (colnr_T)(p - line) >= endpos->col)
 		break;
-	    if (*p == ')' && p[delim_len + 1] == '"'
-			  && STRNCMP(delim_copy, p + 1, delim_len) == 0)
+	    if (*p == ')' && STRNCMP(delim_copy, p + 1, delim_len) == 0
+			  && p[delim_len + 1] == '"')
 	    {
 		found = TRUE;
 		break;