diff options
author | James McCoy <jamessan@jamessan.com> | 2016-09-21 11:55:56 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-09-22 07:16:50 -0400 |
commit | 9d170a493e679339d656f1bcb193284bd45948cb (patch) | |
tree | f507c0d49e382529e77eec15bffb6be74206540c /test/functional/terminal/api_spec.lua | |
parent | e2ad3fbf278ff25565fc720ef17a8ef997307bb7 (diff) | |
download | rneovim-9d170a493e679339d656f1bcb193284bd45948cb.tar.gz rneovim-9d170a493e679339d656f1bcb193284bd45948cb.tar.bz2 rneovim-9d170a493e679339d656f1bcb193284bd45948cb.zip |
vim-patch: Group alternations in preprocess_patch
Without the groupings, only the first alternation matches the diff
marker. For example,
local na_doc='todo\.txt\|version\d\.txt\|tags'
... +'g^diff --git a/runtime/doc/'${na_doc}'...
becomes, after expansion,
... +'g^diff --git a/runtime/doc/todo\.txt\|version\d\.txt\|tags'...
so the matches become "^diff --get a/runtime/doc/todo\.txt",
"version\d\.txt", or "tags". Adding the grouping ensures the expected
behavior of requiring "^diff --get a/runtime/doc/" before every
filename.
Diffstat (limited to 'test/functional/terminal/api_spec.lua')
0 files changed, 0 insertions, 0 deletions