This website works better with JavaScript.
Home
Explore
Help
Sign In
Linux
/
dmenu
generated from
gmarx/git-template
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix crash with ctrl-enter as input
reproduce: ./dmenu; send EOF; press ctrl+enter.
master
Hiltjo Posthuma
10 years ago
committed by
sin
parent
4c50e43df4
commit
aa69426670
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
dmenu.c
+ 2
- 1
dmenu.c
View File
@ -370,7 +370,8 @@ keypress(XKeyEvent *ev) {
puts
(
(
sel
&
&
!
(
ev
-
>
state
&
ShiftMask
)
)
?
sel
-
>
text
:
text
)
;
if
(
!
(
ev
-
>
state
&
ControlMask
)
)
exit
(
EXIT_SUCCESS
)
;
sel
-
>
out
=
True
;
if
(
sel
)
sel
-
>
out
=
True
;
break
;
case
XK_Right
:
if
(
text
[
cursor
]
!
=
'
\0
'
)
{
Write
Preview
Loading…
Cancel
Save