mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 17:31:44 +03:00
fix exec_commands_in_file parsing of [\'"`] strings
This commit is contained in:
parent
b6b66aecc9
commit
13d74414e1
@ -468,8 +468,8 @@ void exec_commands_in_file(const CommandParameters& params,
|
|||||||
{
|
{
|
||||||
char delimiter = file_content[end_pos];
|
char delimiter = file_content[end_pos];
|
||||||
++end_pos;
|
++end_pos;
|
||||||
while (file_content[end_pos] != delimiter or
|
while ((file_content[end_pos] != delimiter or
|
||||||
file_content[end_pos-1] == '\\' and end_pos != length)
|
file_content[end_pos-1] == '\\') and end_pos != length)
|
||||||
++end_pos;
|
++end_pos;
|
||||||
|
|
||||||
if (end_pos == length)
|
if (end_pos == length)
|
||||||
@ -481,7 +481,8 @@ void exec_commands_in_file(const CommandParameters& params,
|
|||||||
++end_pos;
|
++end_pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
++end_pos;
|
if (end_pos != length)
|
||||||
|
++end_pos;
|
||||||
}
|
}
|
||||||
if (end_pos != pos and end_pos != length and
|
if (end_pos != pos and end_pos != length and
|
||||||
file_content[end_pos - 1] == '\\')
|
file_content[end_pos - 1] == '\\')
|
||||||
|
Loading…
Reference in New Issue
Block a user