Commits

Meikel Brandmeyer committed 4d3717b

Fix clear() method for Repl

  • Participants
  • Parent commits 27e7808

Comments (0)

Files changed (1)

File vim/autoload/vimclojure.vim

 let vimclojure#Repl = copy(vimclojure#Buffer)
 let vimclojure#Repl.__superBufferNew = vimclojure#Repl.New
 let vimclojure#Repl.__superBufferInit = vimclojure#Repl.Init
+let vimclojure#Repl.__superBufferClear = vimclojure#Repl.clear
 
 let vimclojure#Repl._history = []
 let vimclojure#Repl._historyDepth = 0
 	startinsert!
 endfunction
 
+function! vimclojure#Repl.clear() dict
+	call self.__superBufferClear()
+	call self.showPrompt()
+endfunction
+
 function! vimclojure#Repl.getCommand() dict
 	let ln = line("$")