mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-12 22:24:40 +08:00
MarkdownToolbar: Bold: Add more tests
This commit is contained in:
@ -110,6 +110,8 @@ TextEditingValue modifyCurrentWord(
|
||||
var wordStartPos = text.lastIndexOf(' ', cursorPos == 0 ? 0 : cursorPos - 1);
|
||||
if (wordStartPos == -1) {
|
||||
wordStartPos = 0;
|
||||
} else {
|
||||
wordStartPos += 1;
|
||||
}
|
||||
|
||||
var wordEndPos = text.indexOf(' ', cursorPos);
|
||||
|
Reference in New Issue
Block a user