Commits

Meikel Brandmeyer committed 61c39c0

Fix trailing whitespace with new EnterHook

  • Participants
  • Parent commits dfe741d

Comments (0)

Files changed (1)

File vim/autoload/vimclojure.vim

 endfunction
 
 function! vimclojure#Repl.enterHook() dict
-	if line(".") < line("$") || col(".") + 1 < col("$")
+	let lastCol = {}
+
+	function lastCol.f() dict
+		normal! g_
+		return col(".")
+	endfunction
+
+	if line(".") < line("$") || col(".") < vimclojure#WithSavedPosition(lastCol)
 		call vimclojure#ReplDoEnter()
 		return
 	endif