aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 464e112900..e10504973b 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -4335,10 +4335,10 @@ search_line:
/* IObuf =~ "\(\k\|\i\).* ", thus i >= 2*/
if (p_js
&& (IObuff[i-2] == '.'
- || (vim_strchr(p_cpo, CPO_JOINSP) == NULL
- && (IObuff[i-2] == '?'
- || IObuff[i-2] == '!'))))
+ || IObuff[i-2] == '?'
+ || IObuff[i-2] == '!')) {
IObuff[i++] = ' ';
+ }
}
/* copy as much as possible of the new word */
if (p - aux >= IOSIZE - i)