Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For OpenLineBelow, add newline to the end of the line of the current … #5270

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JasonBrownDeveloper
Copy link

For OpenLineBelow, add newline to the end of the line of the current selection, instead of the line below the selection, for a more consistent history

Given the following buffer:

Line Zero\n$
$

Pressing the o key on (zero indexed) line one, results in the following history:

  • 1561858 1 0 1561866 2 +0.0|L +0.1|i +0.2|n +0.3|e +0.4| +0.5|Z +0.6|e +0.7|r +0.8|o +0.9|\n
    1 1561872 - +2.0|\n
    +2.0|Line Two

After the patch, pressing the o key, the history would look like the following, which would match if i and <ret> had been pressed on line one.

  • 1561858 1 0 1561866 2 +0.0|L +0.1|i +0.2|n +0.3|e +0.4| +0.5|Z +0.6|e +0.7|r +0.8|o +0.9|\n
    1 1561872 - +1.0|\n
    +2.0|Line Two

  I dedicate any and all copyright interest in this software to the
  public domain.  I make this dedication for the benefit of the public at
  large and to the detriment of my heirs and successors.  I intend this
  dedication to be an overt act of relinquishment in perpetuity of all
  present and future rights to this software under copyright law.
…selection, instead of the line below the selection, for a more consistent history
@mawww
Copy link
Owner

mawww commented Jan 21, 2025

I think this is a good change but I dont quite understand what the last commit is for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants