aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2015-07-19 15:39:03 -0400
committerMichael Reed <Pyrohh@users.noreply.github.com>2015-07-19 15:39:03 -0400
commit259db27aefba280a9c154017b8e852c6d70abdfc (patch)
tree2e1a467ff7798a9e52f0851f4ae894cdb19d8a37 /src/nvim/regexp_nfa.c
parentfcb79ffc40b93d5e0d165e1d001d073c83b8617e (diff)
parent85b7ea9a8770c42bf2cadb1d3fa605b58d82d7cb (diff)
downloadrneovim-259db27aefba280a9c154017b8e852c6d70abdfc.tar.gz
rneovim-259db27aefba280a9c154017b8e852c6d70abdfc.tar.bz2
rneovim-259db27aefba280a9c154017b8e852c6d70abdfc.zip
Merge pull request #2943 from Pyrohh/rm-posix
[RDY] Remove POSIX 'cpoptions' Reviewed-by: Felipe Morales <hel.sheep@gmail.com> Reviewed-by: Marco Hinz <mh.codebro@gmail.com>
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r--src/nvim/regexp_nfa.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index d9dc09b623..42cebb0198 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -1584,10 +1584,8 @@ collection:
* Only "\]", "\^", "\]" and "\\" are special in Vi. Vim
* accepts "\t", "\e", etc., but only when the 'l' flag in
* 'cpoptions' is not included.
- * Posix doesn't recognize backslash at all.
*/
if (*regparse == '\\'
- && !reg_cpo_bsl
&& regparse + 1 <= endp
&& (vim_strchr(REGEXP_INRANGE, regparse[1]) != NULL
|| (!reg_cpo_lit