Skip to content

Fix a bug where line discarding might fail.#3

Merged
sile merged 1 commit intomainfrom
fix-line-discard
Jan 17, 2025
Merged

Fix a bug where line discarding might fail.#3
sile merged 1 commit intomainfrom
fix-line-discard

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Jan 17, 2025

Copilot Summary

This pull request includes several changes to the src/diff.rs and src/widget_diff_tree.rs files, focusing on renaming the stage parameter to reverse and updating related logic accordingly.

Changes in src/diff.rs:

  • Renamed the stage parameter to reverse in the get_line_chunk method and updated the method logic to reflect this change.
  • Updated the conditional checks within the get_line_chunk method to use reverse instead of stage.
  • Modified the logic to determine the starting line number based on the reverse parameter.

Changes in src/widget_diff_tree.rs:

  • Renamed the stage parameter to reverse in the get_diff method and updated the method logic accordingly. [1] [2]
  • Updated the stage and unstage methods to pass the correct boolean value to the get_diff method based on the new reverse parameter. [1] [2]

@sile sile merged commit 3ee79d3 into main Jan 17, 2025
@sile sile deleted the fix-line-discard branch January 17, 2025 10:54
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.

1 participant