summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-29 15:58:12 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-29 15:58:12 +0000
commit9160f30161fab3831ad9b769efe2bf720f2b74c2 (patch)
tree3d20cf457a6d14931039fb3c383ec4e817700d02 /src/search.c
parent89d4032cae3f1e525978bea5015434af677faa44 (diff)
downloadvim-git-9160f30161fab3831ad9b769efe2bf720f2b74c2.tar.gz
updated for version 7.0-071v7.0.071
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 97580c01f..1c38060ee 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1259,7 +1259,7 @@ do_search(oap, dirc, pat, count, options)
/*
* Add character and/or line offset
*/
- if (!(options & SEARCH_NOOF) || *pat == ';')
+ if (!(options & SEARCH_NOOF) || (pat != NULL && *pat == ';'))
{
if (spats[0].off.line) /* Add the offset to the line number. */
{