Skip to content

Conversation

geirha
Copy link
Contributor

@geirha geirha commented Aug 28, 2025

  • Fixed bug where it didn't find the filename when the file's mode changed
  • Now moves cursor to selected column as well as line
  • Ctrl+l re-runs the diff

geirha added 3 commits August 13, 2025 10:09
If a file has a mode change, the diff header will have two additional
lines, e.g.:

    diff --git a/foo b/foo
    old mode 100644
    new mode 100755
    index c0ffee1..c0ffee2
    --- a/foo
    +++ b/foo
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change accomplish?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor(y, x) moves the cursor to line y, column x

col('.') returns the current column position.

And minus 1 because of the diff's +/-/ prefix

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