0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

SERVER-3341 multiline cancels after two blank lines

This commit is contained in:
dannenberg 2011-06-27 14:33:01 -04:00 committed by Kristina
parent c2e54020bd
commit 9a79fd710b

View File

@ -403,6 +403,8 @@ string finishCode( string code ) {
return "";
if ( ! line )
return "";
if ( code.find("\n\n") != string::npos ) // cancel multiline if two blank lines are entered
return ";";
while (startsWith(line, "... "))
line += 4;