1
0
Fork 0

Bug fix 3.4/fix arangosh documentation paste (#9744)

* fix pasting from the documentation

* CHANGELOG

* Update CHANGELOG
This commit is contained in:
Wilfried Goesgens 2019-08-19 16:58:43 +02:00 committed by KVS85
parent 562ee69ca4
commit 4febe0ecd2
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
v3.4.8 (XXXX-XX-XX)
-------------------
* Fixed cut'n'pasting code from the documentation into arangosh.
* Refactor maintenance to use a TakeoverShardLeadership job. This fixes a bug
that a shard follower could have set the wrong leader for the shard locally.

View File

@ -118,6 +118,9 @@ std::string ShellBase::prompt(std::string const& prompt,
if (StringUtils::isPrefix(line, plain)) {
pos = line.find('>');
// The documentation has this, so we ignore it:
} else if (StringUtils::isPrefix(line, "arangosh>")) {
pos = line.find('>');
} else if (StringUtils::isPrefix(line, "...")) {
pos = line.find('>');
}