Commits

Meikel Brandmeyer committed 231c7f7

Fix EvalBlock range (reported by S. Rohlfing and M. Swanson)

Comments (0)

Files changed (1)

vim/autoload/vimclojure.vim

 	wincmd p
 endfunction
 
-function! vimclojure#EvalBlock() range
+function! vimclojure#EvalBlock()
 	let file = vimclojure#BufferName()
 	let ns = b:vimclojure_namespace
 
-	let content = getbufline(bufnr("%"), a:firstline, a:lastline)
+	let content = getbufline(bufnr("%"), line("'<"), line("'>"))
 	let result = vimclojure#ExecuteNailWithInput("Repl", content,
-				\ "-r", "-n", ns, "-f", file, "-l", a:firstline - 1)
+				\ "-r", "-n", ns, "-f", file, "-l", line("'<") - 1)
 
 	let resultBuffer = g:vimclojure#ClojureResultBuffer.New()
 	call resultBuffer.showOutput(result)