Loading src/shell.cpp +2 −2 Changes for src/shell.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2903,8 +2903,8 @@ int fresh::Shell::runSegmentWords(const std::string &input,const std::vector<She // argument, not a real while-loop terminator) would desync // this depth count and either close the group too early or // (as observed) miss the real closing '}' entirely. bool atStmtStart=(words[i-1].text==";" || words[i-1].text=="&&" || words[i-1].text=="||"); bool atStmtStart=(i==from+1 || words[i-1].text==";" || words[i-1].text=="&&" || words[i-1].text=="||"); if(atStmtStart && words[i].text=="{") ++depth; else if(atStmtStart && words[i].text=="}"){ if(--depth==0){ closeIdx=i; break; } Loading Loading
src/shell.cpp +2 −2 Changes for src/shell.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2903,8 +2903,8 @@ int fresh::Shell::runSegmentWords(const std::string &input,const std::vector<She // argument, not a real while-loop terminator) would desync // this depth count and either close the group too early or // (as observed) miss the real closing '}' entirely. bool atStmtStart=(words[i-1].text==";" || words[i-1].text=="&&" || words[i-1].text=="||"); bool atStmtStart=(i==from+1 || words[i-1].text==";" || words[i-1].text=="&&" || words[i-1].text=="||"); if(atStmtStart && words[i].text=="{") ++depth; else if(atStmtStart && words[i].text=="}"){ if(--depth==0){ closeIdx=i; break; } Loading