aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorDavid Bürgin <676c7473@gmail.com>2015-05-01 15:25:48 +0200
committerJustin M. Keyes <justinkz@gmail.com>2015-05-25 16:29:00 -0400
commit44175224ccc75e8feaf2fab594abf957024f79b8 (patch)
tree63982aa72f57a072628afd6ab24387c4e94e2449 /src/nvim/edit.c
parent297973ab00155048a627e8bf72ff4b14d71a6a01 (diff)
downloadrneovim-44175224ccc75e8feaf2fab594abf957024f79b8.tar.gz
rneovim-44175224ccc75e8feaf2fab594abf957024f79b8.tar.bz2
rneovim-44175224ccc75e8feaf2fab594abf957024f79b8.zip
'cpoptions': Remove "j" flag
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 31a5c54c20..9704295aaa 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -3719,11 +3719,10 @@ static int ins_compl_get_exp(pos_T *ini)
/* IObuf =~ "\k.* ", thus len >= 2 */
if (p_js
&& (IObuff[len - 2] == '.'
- || (vim_strchr(p_cpo, CPO_JOINSP)
- == NULL
- && (IObuff[len - 2] == '?'
- || IObuff[len - 2] == '!'))))
+ || IObuff[len - 2] == '?'
+ || IObuff[len - 2] == '!')) {
IObuff[len++] = ' ';
+ }
}
/* copy as much as possible of the new word */
if (tmp_ptr - ptr >= IOSIZE - len)