Skip to content

Commit

Permalink
馃洜 Fix transcode result/working_input processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Oct 7, 2022
1 parent db4962c commit c29ea68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ztd/text/transcode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,13 +563,16 @@ namespace ztd { namespace text {
}
if (ranges::ranges_adl::adl_empty(__result.input)) {
if (!text::is_state_complete(__from_state)) {
__working_input = ::std::move(__result.input);
continue;
}
if (!text::is_state_complete(__to_state)) {
__working_input = ::std::move(__result.input);
continue;
}
return __result;
}
__working_input = ::std::move(__result.input);
}
}

Expand Down

0 comments on commit c29ea68

Please sign in to comment.