Skip to content

Commit

Permalink
fix(docs-ui): select all on empty doc (#4787)
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 authored Mar 7, 2025
1 parent f0df9ef commit d85a0db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export const DocSelectAllCommand: ICommand<ISelectAllCommandParams> = {
return false;
}

const { tables = [] } = body;
const { tables = [], dataStream } = body;
if (dataStream === '\r\n') {
return true;
}
const textRanges: ISuccinctDocRangeParam[] = [];
let offset = 0;

Expand Down

0 comments on commit d85a0db

Please sign in to comment.