joinLines method
Joins the current line with the next line, or joins the selected block into a single line.
Implementation
bool joinLines() {
return _runEditFrame(() {
_beginHistoryAction(_TextAreaHistoryAction.transform, breakChain: true);
final result = textJoinLinesDocument(
document: _document,
state: _currentLineStateSnapshot(),
);
if (!result.changed) {
return false;
}
_recordUndoSnapshot();
_applyOffsetCommandResult(result);
return true;
});
}