Improve REPL pane behavior