We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29ee05f commit b548076Copy full SHA for b548076
packages/ketcher-core/src/application/editor/modes/SequenceMode.ts
@@ -866,8 +866,8 @@ export class SequenceMode extends BaseMode {
866
if (
867
nodeBeforeSelection === nodeInSameChainBeforeSelection &&
868
nodeBeforeSelection instanceof Nucleotide &&
869
- !(nodeInSameChainAfterSelection instanceof Nucleotide) &&
870
- !(nodeInSameChainAfterSelection instanceof Nucleoside)
+ selectionStartNode instanceof Nucleoside &&
+ (!nodeAfterSelection || nodeAfterSelection instanceof EmptySequenceNode)
871
) {
872
// delete phosphate from last nucleotide
873
modelChanges.merge(
0 commit comments