Merge branch 'terminology-1.6'

This commit is contained in:
Boris Faure 2020-02-16 18:53:50 +01:00
commit 3d6a9e1bf5
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
3 changed files with 18 additions and 2 deletions

View File

@ -206,8 +206,8 @@ termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
}
g = _termpty_charset_trans(ty, codepoints[i]);
/* Skip 0-width space */
if (EINA_UNLIKELY(g == 0x200b))
/* Skip 0-width space or RTL/LTR marks */
if (EINA_UNLIKELY(g >= 0x200b && g <= 0x200f))
{
continue;
}

View File

@ -126,3 +126,4 @@ osc-invalid.sh 0acecbe16bb3b257745787c40affdb90
title_icon_stack_simple.sh 9231de4459dbb52d0ffab6f33fc386a0
title_icon_stack_unset.sh d2ebe2295eb036d9612209490f8aa7f9
title_icon_stack_default.sh d2ebe2295eb036d9612209490f8aa7f9
zero-width-spaces.sh 4bbf6bbaef5f651d27b7593d82650de9

15
tests/zero-width-spaces.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# fill space with E
printf '\033#8'
#set color
printf '\033[46;31;3m'
# Zero width space
printf 'aa\xe2\x80\x8baa\n'
# Zero width space non-joiner
printf 'aa\xe2\x80\x8caa\n'
# Zero width space joiner
printf 'aa\xe2\x80\x8daa\n'