robbyrussell/oh-my-zsh — pull request #3141 by muggenhor (2014-09-15 13:38:08+00:00)
Title: sudo: maintain cursor position

I.e. when prefixing the current command-line with 'sudo ' maintain the
current cursor position instead of jumping to the end of the line.

This takes advantage of the fact that LBUFFER always contains all text left of the cursor and also happens to contain all text at the start of the buffer currently being edited.