OWASP-BLT / BLT-Flutter

The official OWASP BLT App repository/ Heist 'em bugs!
https://owasp.org/www-project-bug-logging-tool/
BSD 3-Clause "New" or "Revised" License
22 stars 28 forks source link

Fix RangeError in markdownNewLine Function for Text Insertion #386

Closed Dante291 closed 5 months ago

Dante291 commented 5 months ago

fixes #381

This bug occurs if there is no selection or cursor position (both start and end are -1 initially) therefore putting a condition fixes this issue