mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
vim-patch:7.4.915
Problem: When removing from 'path' and then adding, a comma may go missing.
(Malcolm Rowe)
Solution: Fix the check for P_ONECOMMA. (closes #471)
174674743d
This commit is contained in:
@@ -1676,7 +1676,8 @@ do_set (
|
||||
if (adding) {
|
||||
i = (int)STRLEN(origval);
|
||||
// Strip a trailing comma, would get 2.
|
||||
if (comma && (flags & P_ONECOMMA) && i > 1
|
||||
if (comma && i > 1
|
||||
&& (flags & P_ONECOMMA) == P_ONECOMMA
|
||||
&& origval[i - 1] == ','
|
||||
&& origval[i - 2] != '\\') {
|
||||
i--;
|
||||
|
@@ -373,7 +373,7 @@ static int included_patches[] = {
|
||||
// 918 NA
|
||||
// 917 NA
|
||||
916,
|
||||
// 915,
|
||||
915,
|
||||
// 914,
|
||||
// 913 NA
|
||||
// 912,
|
||||
|
Reference in New Issue
Block a user