diff options
author | Gary Li <gary.li1@uwaterloo.ca> | 2023-04-09 11:21:05 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2023-04-09 11:21:05 +0000 |
commit | ce367695f2d66f839f2ec1cb707fb2378db06ab1 (patch) | |
tree | 2e49f4e62c4a6c3da6daf5ae6f508271429ec618 /meson.build | |
parent | 4f04d447fd9ee090628c36e2f57186f0872396db (diff) | |
download | nautilus-ce367695f2d66f839f2ec1cb707fb2378db06ab1.tar.gz |
batch-rename-dialog: fix tag intersection for zero-length deletions
Dead keys insert a provisional visual indication, which looks like a
text insertion, but is actually signaled as `::delete-text`. Unlike
regular emissions of `::delete-text`, here the start and end positions
are exactly the same (so you know nothing is actually deleted).
Nautilus deletes the neighbouring tag
When a dead key is entered into the batch rename entry, it deletes
the neighbouring tag. This occurs for just before, inside and just
after the tag.
This happens because our logic for knowing when to delete special
text tags is assuming end_position > start_position, which is not
the case with dead keys.
Add conditions to ensure intersecting selections cannot be zero-length.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2821
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions