aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-05-25 16:30:17 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-05-25 16:30:17 -0400
commita7b5ae37a71dae93f86da3003bf267fc4f4490f0 (patch)
treee9b0aba5a26f1cf543ba266aabd9edb0911d7c54 /src/nvim/edit.c
parent297973ab00155048a627e8bf72ff4b14d71a6a01 (diff)
parente4c3ac1f82ea69777e1dcbfeb18a42c572c54d8f (diff)
downloadrneovim-a7b5ae37a71dae93f86da3003bf267fc4f4490f0.tar.gz
rneovim-a7b5ae37a71dae93f86da3003bf267fc4f4490f0.tar.bz2
rneovim-a7b5ae37a71dae93f86da3003bf267fc4f4490f0.zip
Merge #2555 Remove "j" flag from 'cpoptions'
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)