@expensify/react-native-live-markdown 0.1.104 → 0.1.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -418,7 +418,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
418
418
  if (inputType === 'deleteContentBackward') {
419
419
  // When the user does a backspace delete he expects the content before the cursor to be removed.
420
420
  // For this the start value needs to be adjusted (its as if the selection was before the text that we want to delete)
421
- start -= before;
421
+ start = Math.max(start - before, 0);
422
422
  }
423
423
 
424
424
  event.nativeEvent.count = count;