Codebase list mozc / 2ac4001
Update patch for fcitx5: Fix build of Utf8SubString Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 3 years ago
2 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1717 * Fix build with latest mozc.
1818 * Update 0002-Support-fcitx.patch
1919 * Fix build of Utf8SubString for fcitx.
20 * Fix build of Utf8SubString for fcitx5.
2021
2122 -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Sun, 27 Dec 2020 22:01:58 +0900
2223
93499349 + const size_t selection_start = std::min(cursor_pos, anchor_pos);
93509350 + const size_t selection_length = std::abs(info->relative_selected_length);
93519351 + info->preceding_text =
9352 + Util::Utf8SubString(surrounding_text, 0, selection_start);
9352 + std::string(Util::Utf8SubString(surrounding_text, 0, selection_start));
93539353 + info->selection_text =
9354 + Util::Utf8SubString(surrounding_text, selection_start, selection_length);
9354 + std::string(Util::Utf8SubString(surrounding_text, selection_start, selection_length));
93559355 + info->following_text =
9356 + Util::Utf8SubString(surrounding_text, selection_start + selection_length);
9356 + std::string(Util::Utf8SubString(surrounding_text, selection_start + selection_length));
93579357 + return true;
93589358 +}
93599359 +