diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-25 22:34:38 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-25 22:34:38 -0800 |
commit | 7fd434a692d6f6b7d6d1ef2c4fd447c6492483c4 (patch) | |
tree | 7a1250284c7cea94bc104b04ca711e8ef4a4a6a8 | |
parent | e205057ff28d64ef5684bd534c0d753fd5d44772 (diff) | |
download | teliva-7fd434a692d6f6b7d6d1ef2c4fd447c6492483c4.tar.gz |
better default word at cursor for prose
-rw-r--r-- | src/kilo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kilo.c b/src/kilo.c index 789d7e5..83da598 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -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) { |