Added buffer_get_text_at function to buffer