Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
33bc848c
Commit
33bc848c
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
binding: properly conditionalize the UTF-8 parts
Reported-by:
Sumedh Pendurkar
<
sumedh.pendurkar@gmail.com
>
parent
4c476bc8
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/global.c
+8
-2
src/global.c
with
8 additions
and
2 deletions
+8
-2
src/global.c
View file @
33bc848c
...
...
@@ -1103,10 +1103,13 @@ void shortcut_init(void)
add_to_sclist
(
MMOST
,
"Left"
,
KEY_LEFT
,
do_left
,
0
);
add_to_sclist
(
MMOST
,
"^F"
,
0
,
do_right
,
0
);
add_to_sclist
(
MMOST
,
"Right"
,
KEY_RIGHT
,
do_right
,
0
);
#ifdef ENABLE_UTF8
if
(
using_utf8
())
{
add_to_sclist
(
MMOST
,
"^
\xE2\x86\x90
"
,
CONTROL_LEFT
,
do_prev_word_void
,
0
);
add_to_sclist
(
MMOST
,
"^
\xE2\x86\x92
"
,
CONTROL_RIGHT
,
do_next_word_void
,
0
);
}
else
{
}
else
#endif
{
add_to_sclist
(
MMOST
,
"^Left"
,
CONTROL_LEFT
,
do_prev_word_void
,
0
);
add_to_sclist
(
MMOST
,
"^Right"
,
CONTROL_RIGHT
,
do_next_word_void
,
0
);
}
...
...
@@ -1120,10 +1123,13 @@ void shortcut_init(void)
add_to_sclist
(
MMAIN
|
MHELP
|
MBROWSER
,
"Up"
,
KEY_UP
,
do_up_void
,
0
);
add_to_sclist
(
MMAIN
|
MHELP
|
MBROWSER
,
"^N"
,
0
,
do_down_void
,
0
);
add_to_sclist
(
MMAIN
|
MHELP
|
MBROWSER
,
"Down"
,
KEY_DOWN
,
do_down_void
,
0
);
#ifdef ENABLE_UTF8
if
(
using_utf8
())
{
add_to_sclist
(
MMAIN
,
"^
\xE2\x86\x91
"
,
CONTROL_UP
,
do_prev_block
,
0
);
add_to_sclist
(
MMAIN
,
"^
\xE2\x86\x93
"
,
CONTROL_DOWN
,
do_next_block
,
0
);
}
else
{
}
else
#endif
{
add_to_sclist
(
MMAIN
,
"^Up"
,
CONTROL_UP
,
do_prev_block
,
0
);
add_to_sclist
(
MMAIN
,
"^Down"
,
CONTROL_DOWN
,
do_next_block
,
0
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help