Skip to content

Handle moving to start/end with one gap left

What does this MR do?

This is a fix to a regression from !39807 (merged).

position_between expects arguments to be the position before and after the new node. So when moving to the start / end, we must add or subtract 1 so that the end positions are also treated as available positions.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

#238416 (closed)

Edited by Heinrich Lee Yu

Merge request reports

Loading