Merge pull request #99640 from DonJayamanne/fixCellJoin
Use eol when joining cells
This commit is contained in:
commit
aced01dded
1 changed files with 2 additions and 3 deletions
|
@ -992,8 +992,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
|
|||
if (!above.hasModel()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const insertContent = cell.getText();
|
||||
const insertContent = (cell.textModel?.getEOL() ?? '') + cell.getText();
|
||||
const aboveCellLineCount = above.textModel.getLineCount();
|
||||
const aboveCellLastLineEndColumn = above.textModel.getLineLength(aboveCellLineCount);
|
||||
above.textModel.applyEdits([
|
||||
|
@ -1017,7 +1016,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
|
|||
return null;
|
||||
}
|
||||
|
||||
const insertContent = below.getText();
|
||||
const insertContent = (cell.textModel?.getEOL() ?? '') + below.getText();
|
||||
|
||||
const cellLineCount = cell.textModel.getLineCount();
|
||||
const cellLastLineEndColumn = cell.textModel.getLineLength(cellLineCount);
|
||||
|
|
Loading…
Reference in a new issue