diff --git a/src/parse_util.cpp b/src/parse_util.cpp index bdc72e458..595fe621d 100644 --- a/src/parse_util.cpp +++ b/src/parse_util.cpp @@ -266,10 +266,6 @@ int parse_util_locate_cmdsubst_range(const wcstring &str, size_t *inout_cursor_o *out_end = bracket_range_end - buff; if (out_is_quoted) *out_is_quoted = cmdsub_is_quoted; - // Update the inout_cursor_offset. Note this may cause it to exceed str.size(), though - // overflow is not likely. - *inout_cursor_offset = 1 + *out_end; - // Update the inout_cursor_offset. Note this may cause it to exceed str.size(), though // overflow is not likely. *inout_cursor_offset = 1 + *out_end;