liweinan 9c9c9d302c table-printer: Fix left boundary check in comma-unique cell dedup
In flatpak_table_printer_append_cell_with_comma_unique, the duplicate
check only verified the right boundary (match[len] == 0 or comma).
This caused false positives: searching for "all" in "superall" matched
because the character after "all" happened to be a comma, even though
"all" was a substring of "superall", not a separate comma-delimited
entry.

Calculate the position of each match via pointer arithmetic
(match - cell->text) and use cell->text[pos - 1] to check the left
boundary, so that a match is only treated as duplicate when it is at
the start of the cell or preceded by a comma.
2026-09-22 10:21:47 +00:00
2026-01-21 17:58:19 +00:00
2022-10-24 16:12:14 +01:00
2026-09-21 20:36:28 +00:00
2022-10-24 16:12:14 +01:00
2026-01-21 17:58:19 +00:00
2015-03-31 15:36:29 +01:00
2022-09-26 14:35:40 +01:00
2026-09-21 17:00:06 +00:00
2026-06-08 14:35:23 +02:00

Flatpak icon

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux.

See https://flatpak.org/ for more information.

Flatpak is available in the package repositories of most Linux distributions and can be installed from there. See https://flatpak.org/setup/ for quick setup instructions for many distributions.

Community discussion happens in #flatpak:matrix.org, on the mailing list, and on the Flathub Discourse.

Read documentation for Flatpak here.

Contributing

Flatpak welcomes contributions from anyone! Here are some ways you can help:

Hacking

See CONTRIBUTING.md

Related Projects

Here are some notable projects in the Flatpak ecosystem:

  • Flatseal: An app for managing permissions of Flatpak apps without using the CLI
  • Flat-manager: A tool for managing Flatpak repositories

Host Requirements

Flatpak aims to run on a wide variety of systems. It is therefore conservative with required dependency versions and kernel features.

Currently, the main branch requires at least kernel version 5.8 (for statx STATX_MNT_ID).

S
Description
No description provided
Readme LGPL-2.1
61 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 91.1%
Shell 6.1%
Meson 1.1%
Python 0.9%
Yacc 0.8%