-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid access when recording keys
<c-n>/<c-p> handling in insert was always dropping the last key in the last_insert() vector (in order to replace it with the actual completion text inserted), this was not valid for synthetized keys that are not added to that vector in the first place. Take the opportunity to merge insert completion handling code between <c-n>/<c-p> and direct menu selection. Fixes #5120
- Loading branch information
Showing
3 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ggQm*nWd<a-l>d<a-d>n<a-c>\fo<c-n>{<c-r>"}<esc>Q8q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit[1]. Maxime mollitia, | ||
molestiae quas vel sint commodi[2] repudiandae consequuntur voluptatum laborum | ||
numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium | ||
optio, eaque rerum![3] Provident similique accusantium nemo autem. Veritatis | ||
obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam | ||
nihil,[4] eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit, | ||
tenetur error, harum nesciunt ipsum debitis quas aliquid. Reprehenderit, | ||
quia. Quo neque error repudiandae fuga? Ipsa laudantium molestias eos | ||
sapiente officiis modi at sunt excepturi expedita sint? Sed quibusdam | ||
recusandae alias error harum maxime adipisci amet laborum[5]. Perspiciatis | ||
minima nesciunt dolorem! Officiis iure rerum voluptates a cumque velit | ||
quibusdam sed amet tempora[6]. Sit laborum ab, eius fugit doloribus tenetur | ||
fugiat, temporibus enim commodi iusto libero magni deleniti quod quam | ||
consequuntur! Commodi minima excepturi repudiandae velit hic maxime | ||
doloremque[7]. Quaerat provident commodi consectetur veniam similique ad | ||
earum omnis ipsum saepe, voluptas, hic voluptates pariatur est explicabo | ||
fugiat, dolorum eligendi quam cupiditate excepturi mollitia maiores labore | ||
suscipit quas? Nulla, placeat[8]. Voluptatem quaerat non architecto ab laudantium | ||
modi minima sunt esse temporibus sint culpa, recusandae aliquam numquam | ||
totam ratione voluptas quod exercitationem fuga[9]. Possimus quis earum veniam | ||
quasi aliquam eligendi, placeat qui corporis! | ||
|
||
|
||
[1] This is the first footnote. | ||
|
||
[2] This is the second footnote. | ||
|
||
[3] This is the third footnote. | ||
|
||
[4] This is the fourth footnote. | ||
|
||
[5] This is the fifth footnote. | ||
|
||
[6] This is the sixth footnote. | ||
|
||
[7] This is the seventh footnote. | ||
|
||
[8] This is the eighth footnote. | ||
|
||
[9] This is the Ninth footnote. |