better default word at cursor for prose

This commit is contained in:
Kartik K. Agaram 2022-01-25 22:34:38 -08:00
parent e205057ff2
commit 7fd434a692
1 changed files with 2 additions and 2 deletions

View File

@ -1042,8 +1042,8 @@ static void editorMoveCursor(int key) {
}
static int identifier_char(char c) {
/* keep sync'd with llex */
return isalnum(c) || c == '_';
/* keep sync'd with llex, with one exception for prose */
return isalnum(c) || c == '_' || c == ':';
}
static void word_at_cursor(char* out, int capacity) {