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:
parent
c2e54020bd
commit
9a79fd710b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user