mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Allow U+F8FF to be typed
U+F8FF is the last character in the private use area, but it's also the codepoint used for the Apple symbol (), which is typeable on US keyboards in OS X, and so should actually work.
This commit is contained in:
parent
94e535507c
commit
b480c8ce79
6 changed files with 19 additions and 1 deletions
|
@ -3002,10 +3002,13 @@ static int can_read(int fd)
|
|||
/**
|
||||
Test if the specified character is in the private use area that
|
||||
fish uses to store internal characters
|
||||
|
||||
Note: Allow U+F8FF because that's the Apple symbol, which is in the
|
||||
OS X US keyboard layout.
|
||||
*/
|
||||
static int wchar_private(wchar_t c)
|
||||
{
|
||||
return ((c >= 0xe000) && (c <= 0xf8ff));
|
||||
return ((c >= 0xe000) && (c < 0xf8ff));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
13
tests/generic.expect
Normal file
13
tests/generic.expect
Normal file
|
@ -0,0 +1,13 @@
|
|||
# vim: set filetype=expect:
|
||||
#
|
||||
# General tests that don't belong elsewhere
|
||||
|
||||
spawn $fish
|
||||
|
||||
expect_prompt
|
||||
|
||||
# ensure the Apple key () is typeable
|
||||
send_line "echo "
|
||||
expect_prompt "" {} unmatched {
|
||||
puts stderr "Couldn't type apple key ()"
|
||||
}
|
0
tests/generic.expect.err
Normal file
0
tests/generic.expect.err
Normal file
0
tests/generic.expect.out
Normal file
0
tests/generic.expect.out
Normal file
1
tests/generic.expect.status
Normal file
1
tests/generic.expect.status
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -1,2 +1,3 @@
|
|||
File bind.expect tested ok
|
||||
File generic.expect tested ok
|
||||
File read.expect tested ok
|
||||
|
|
Loading…
Reference in a new issue