Commits

Tamas Kovacs committed f77d0a6

Remember command start pos when about to start changing the buffer

  • Participants
  • Parent commits ae97248
  • Tags 0.7.0

Comments (0)

Files changed (1)

File ftplugin/slimv.vim

     execute "au! CursorHold"
     execute "au! CursorHoldI"
     set noreadonly
+
+    " Remember the end of the buffer and the actual prompt
+    call setpos( "'s", [0, line('$'), col('$'), 0] )
+    let s:prompt = getline( "'s" )
 endfunction
 
 " Called when entering REPL buffer