Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Bug with git diff replicating #1145

@VB-is-Terrible

Description

@VB-is-Terrible

Prerequisites

  • Have you tried to reproduce the problem in Safe Mode? Yes
  • Have you followed all applicable steps in the debugging guide? Yes
  • Have you checked the FAQs on the message board for common solutions? It's a new bug, no solutions exist
  • Have you checked that your issue isn't already filed? Yes

Discuss topic

Description

The git diff panel gets copied to the active directory on some key strokes. See images.

Steps to Reproduce

Prerequisites: Have a unstaged/uncommited change in git

  1. Have at least two panes open
  2. Open git tab open
  3. Open a git diff panel in one of the panes
  4. Switch to a different
  5. [Keyboard] Ctrl+S (Alt-tab also works)

Expected behavior:

Nothing

Actual behavior:

The git diff panel copies into the active pane

Reproduces how often:

100%

Versions

Atom 1.20-beta3 x64 on Ubuntu 17.04
Atom 1.20.0-beta5 on Ubuntu 16.04

Additional Information

Before:
atom-before
[Alt-tab out, Alt-tab in]
atom-after

No errors in console

There isn't anything abnormal in the keybinding resolver
Crtl+s only contains core:save
Alt-tab isn't recognized by the resolver (Probably intercepted by my compositor)


Some details from @rsese:

With the Git panel enabled:

  1. Open some file in a repo and split the pane right.
  2. Save a change to create an unstaged change.
  3. Click the unstaged change in the Git panel to open the diff view.
  4. Click in the pane that doesn't have the diff view in it.
  5. alt-tab out of Atom and then back into Atom.

The diff view is then duplicated into the pane that didn't have the diff view originally.

GIF-ment:

diff-copy

Can't reproduce on macOS 10.12.6 so tagging as Linux for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions