handle when clj-repl buffer is not in a window