Fixes problem with ruby-electric mode: function definition is void ruby-insert-end.