Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.5
-
None
-
Patch
Description
When you use the edit command in groovysh, the editor's contents should replace the current shell buffer, not append to it.
Steps to reproduce:
1) launch groovysh on any platform
2) type an incomplete expression:
groovy:000> x = {
3) type '\e' to launch an editor
4) Complete the expression in the editor:
x =
5) save and close the editor
6) notice the new expression has not been parsed and executed
7) type '\d' to display the current buffer. Notice the edit command appended rather than replaced the current buffer:
groovy:002> \d
000> x = {
001> x = { println 2 + 2 }