mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-07-10 01:29:59 +00:00
fix escape character problem in multi-line commands
This commit is contained in:
parent
c94caa789d
commit
b9bd771f35
1 changed files with 7 additions and 1 deletions
|
|
@ -75,6 +75,9 @@ CheckMultilineCommand(std::string CurrentCommand)
|
|||
|
||||
case '{':
|
||||
|
||||
if (IsPreviousCharacterABackSlash)
|
||||
IsPreviousCharacterABackSlash = false;
|
||||
|
||||
if (!IsOnString)
|
||||
CountOfOpenCurlyBrackets++;
|
||||
|
||||
|
|
@ -82,6 +85,9 @@ CheckMultilineCommand(std::string CurrentCommand)
|
|||
|
||||
case '}':
|
||||
|
||||
if (IsPreviousCharacterABackSlash)
|
||||
IsPreviousCharacterABackSlash = false;
|
||||
|
||||
if (!IsOnString && CountOfOpenCurlyBrackets > 0)
|
||||
CountOfOpenCurlyBrackets--;
|
||||
|
||||
|
|
@ -205,7 +211,7 @@ main(int argc, char * argv[])
|
|||
//
|
||||
// Show a small signature
|
||||
//
|
||||
printf("> ");
|
||||
printf("> ");
|
||||
|
||||
//
|
||||
// Get next command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue