Eric Freese 78e4379711 Fix moving cursor to end of buffer when suggestion accepted
$max_cursor_pos in this case was not the correct value to use. It was
calculated based on the old length of the $BUFFER. After the suggestion
is accepted, we need to recalculate the new max cursor length and use it
to set the $CURSOR.

Fixes issue . Follow-up to issue  (PR ).
..
integrations
options Fix moving cursor to end of buffer when suggestion accepted
strategies
widgets
async_spec.rb
kill_ring_spec.rb
line_init_spec.rb
multi_line_spec.rb
spec_helper.rb
terminal_session.rb