aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2016-09-04 13:54:59 +1000
committerSteve Bennett <steveb@workware.net.au>2016-09-05 09:40:26 +1000
commited4923bc71b7630cc34328b32704e806bb10c614 (patch)
tree024ee39a3b430a447bc2fc1a49a0110a21cef013 /auto.def
parentc672379dca1fe3fa7b89e1d8c6b1a1e570bb4043 (diff)
downloadjimtcl-ed4923bc71b7630cc34328b32704e806bb10c614.zip
jimtcl-ed4923bc71b7630cc34328b32704e806bb10c614.tar.gz
jimtcl-ed4923bc71b7630cc34328b32704e806bb10c614.tar.bz2
Add utf-8 display width info
Needed when using linenoise line editing with utf-8 support Note that variable width support is not yet added to linenoise Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto.def b/auto.def
index 1d83995..e531743 100644
--- a/auto.def
+++ b/auto.def
@@ -173,6 +173,7 @@ if {[opt-bool utf8 full]} {
msg-result "Enabling UTF-8"
define JIM_UTF8
define-append CCOPTS -DUSE_UTF8
+ define PARSE_UNIDATA_FLAGS ""
incr jimregexp
} else {
define JIM_UTF8 0
@@ -219,6 +220,7 @@ if {[opt-bool lineedit full]} {
msg-result "Enabling line editing"
define USE_LINENOISE
define-append CCOPTS -DNO_COMPLETION
+ define-append PARSE_UNIDATA_FLAGS -width
lappend extra_objs linenoise.o
}
}