Commits

Ludovic Chabant  committed 220c950

Fixes for Lawrencium files:
- Move the cursor to the top of the buffer.
- Insert stuff at the first line instead of below it.

  • Participants
  • Parent commits 2b3fb72

Comments (0)

Files changed (1)

File plugin/lawrencium.vim

     let l:all_args = [a:command] + a:000
     let l:hg_command = call(self['GetCommand'], l:all_args, self)
     call s:trace("Running Mercurial command: " . l:hg_command)
-    execute 'read !' . escape(l:hg_command, '%#\')
+    execute '0read !' . escape(l:hg_command, '%#\')
 endfunction
 
 " Build a Lawrencium path for the given file and action.
     setlocal nomodified
     setlocal bufhidden=delete
     setlocal buftype=nofile
+    goto
 
     " Remember the repo it belongs to and make
     " the Lawrencium commands available.