selection collapse fix for insert_newline function

by the-mikedavis
GNU/Linux ◆ xterm-kitty ◆ fish 744 views

demo-ing the fix behavior in helix #2414