Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2012-04-30 17:14:15 +0400
committerSv. Lockal <lockalsash@gmail.com>2012-04-30 17:14:15 +0400
commit435679b4b074265c4cdcbe72fa264be77e1f7a6d (patch)
tree28507d75251a33eb422c8b58f87fbd24abaac092 /source/blender/blenlib/intern/string_cursor_utf8.c
parent1d8c79818870b92df46c443d7778438aa67d019c (diff)
Word selection in the Text Editor:
* Fix word selection for words with multibyte characters. No need to call txt_move_left() or txt_move_right(), because these functions work with symbols, not bytes * Word selection now treats tabs the same way as spaces. Also useful for words with multibyte characters
Diffstat (limited to 'source/blender/blenlib/intern/string_cursor_utf8.c')
-rw-r--r--source/blender/blenlib/intern/string_cursor_utf8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/string_cursor_utf8.c b/source/blender/blenlib/intern/string_cursor_utf8.c
index 97559d6ba10..422a600e51c 100644
--- a/source/blender/blenlib/intern/string_cursor_utf8.c
+++ b/source/blender/blenlib/intern/string_cursor_utf8.c
@@ -93,6 +93,7 @@ static strCursorDelimType test_special_char(const char *ch_utf8)
return STRCUR_DELIM_QUOTE;
case ' ':
+ case '\t':
return STRCUR_DELIM_WHITESPACE;
case '\\':