Check if current view is repl

Fixes #17