#1018026 meld: del key does not work in git dir-diff mode

Package:
meld
Source:
meld
Submitter:
Vilius Panevėžys
Date:
2023-08-01 13:39:03 UTC
Severity:
normal
#1018026#5
Date:
2022-08-24 11:18:55 UTC
From:
To:
   * What led up to the situation?

	0. `cd` to a Git working copy with at least one modified file.
	1. Run `git difftool -d -t meld`.
	2. Open a modified file.
	3. Press the "delete" key on the keyboard.

   * What was the outcome of this action?

   The character to the left of the cursor not deleted, the following
   error is printed to stderr.

	Traceback (most recent call last):
	  File "/usr/lib/python3/dist-packages/meld/dirdiff.py", line 1260, in on_button_delete_clicked
		self.delete_selected()
	  File "/usr/lib/python3/dist-packages/meld/misc.py", line 54, in wrap_function
		return function(args[0], pane, *args[1:], **kwargs)
	  File "/usr/lib/python3/dist-packages/meld/dirdiff.py", line 1024, in delete_selected
		paths = self._get_selected_paths(pane)
	  File "/usr/lib/python3/dist-packages/meld/dirdiff.py", line 1308, in _get_selected_paths
		assert pane is not None
	AssertionError

   * What outcome did you expect instead?

   The character to the left of the cursor deleted, no errors.

When invoked with `git difftool -t meld`, "delete" key works as
expected - the problem is only reproducible in dir-diff mode.

#1018026#10
Date:
2022-08-24 11:35:53 UTC
From:
To:
The expected outcome of pressing the "delete" key is to have the
character to the _right_ of the cursor deleted, of course. Sorry for
the brain fart.

#1018026#15
Date:
2022-08-25 08:45:24 UTC
From:
To:
AssertionError is produced.
#1018026#20
Date:
2023-08-01 13:37:18 UTC
From:
To:
It's probably best to report this to the upstream project at
https://gitlab.gnome.org/GNOME/meld/-/issues