20.7.1.4189

```
clickhouse-client -m

:) select 1
:-] ---abbbb
:-] , 2 b
:-] ;

SELECT 1

┌─1─┐
│ 1 │
└───┘
```

19.13.7.57
```
clickhouse-client -m
select 1
:-] --xxxx
:-] ,2 b
:-] ;

SELECT
    1,
    2 AS b

┌─1─┬─b─┐
│ 1 │ 2 │
└───┴───┘
```
const char * has_delimiter = nullptr;
        for (const auto * delimiter : delimiters)
        {
            if (input.ends_with(delimiter))
            {
                has_delimiter = delimiter;
                break;
            }
        }
        need_next_line = has_extender || (multiline && !has_delimiter) || hasInputData();
        if (has_extender)
        {
            input.resize(input.size() - strlen(has_extender));
            trim(input);
            if (input.empty())
                continue;
        }
#endif
        line += (line.empty() ? "" : " ") + input;
        if (!need_next_line)
            break;
    }
    if (!line.empty() && line != prev_line)
    {
        addToHistory(line);
        prev_line = line;
    }
    return line;
}
LineReader::InputStatus LineReader::readOneLine(const String & prompt)