diff options
author | dannenberg <dannenberg.matt@gmail.com> | 2011-06-27 14:33:01 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-07-29 11:51:22 -0400 |
commit | 9a79fd710beaf93969f4aa8c79f6a4217107dcf2 (patch) | |
tree | a5a0cb88e376713c1a74915cac55cce4901eb473 /shell | |
parent | c2e54020bdd648c52c4e2202fc02087756a5d5fb (diff) | |
download | mongo-9a79fd710beaf93969f4aa8c79f6a4217107dcf2.tar.gz |
SERVER-3341 multiline cancels after two blank lines
Diffstat (limited to 'shell')
-rw-r--r-- | shell/dbshell.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index f36264ef7f8..f3122c797d5 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -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; |