Fix TernRename in gvim, where the wrong buffer was selected

So the changes were made in the wrong buffer.