Bottom of git changes to file not displayed

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’ve noticing that not all changes to a file are displayed when I use the “Open Changes” button on the Source Control tab to view all uncommitted changes with a single tab (ie. “Git: Changes (10 files)”) The changes towards the bottom of the file are cutoff.

If I view the changes to the file individually, I see all the changes. If I few all the changes in one tab, the bottom changes to a file are missing.

I’m noticing not all files do this. I feel like I’ve seen this happen before though. The file I’m looking at now that has the problem has a lot of deleted lines

Steps to Reproduce

  1. Make changes to several files tracked by git
  2. Choose the Source Control panel on the left.
  3. Under the “Commit” button, hover over the “Changes” section.
  4. Click the “Open Changes” icon, to view all changed files in a single tab.
  5. BUG: Some files are truncated, and do not show changes at the bottom.

Expected Behavior

The “Open Changes” button should show all changes to the changed files, not truncate some changes before the last change.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Cursor 2.4.21
VSCode 1.105.1

For AI issues: which model did you use?

Composer

Additional Information

I dont see it happening to all changed files. Just some, but this is dangerous because I use this “Open Changes” to look at all the changes i’ve made before committing.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

I’ll need a bit more info to reproduce it:

  1. What zoom level do you have set? (View > Zoom Level, or check window.zoomLevel in Settings) There are known rendering issues in the diff view with non-default zoom.
  2. Try resetting zoom to 100% (View > Reset Zoom or Cmd + 0) and see if the issue goes away.
  3. Can you share rough stats for the file where the diff gets cut off? (How many lines were removed and added)

If it’s related to zoom, that’s a known category of bugs. If not, I’ll log it as a new bug. As a workaround for now, please view files one by one before committing. I know that’s inconvenient.

Thanks for the quick reply. I will check my zoom settings next time I see this. I think I was at 100%, though.

The file image above was a picture of the entire changes in the file. There were 15-20 lines removed, and only one line added.

I think I found the issue. The clipping happens when the bottom panel is open (Cmd-J).

If I close the bottom panel, The full content appears.

View with bottom panel closed:

Clipped view with bottom panel open.

Zoom was at 100%, too. Not a zooming issue.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.