Fix the behaviour of end completion when editing *.rb