mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-07 17:33:14 -04:00
Make select behave more Rasi-ish
This commit is contained in:
parent
40f95ae81f
commit
c87e91b6d9
3 changed files with 4 additions and 5 deletions
|
@ -445,9 +445,7 @@ static void dmenu_finalize ( RofiViewState *state )
|
|||
if ( pd->selected_list != NULL ) {
|
||||
for ( unsigned int st = 0; st < pd->cmd_list_length; st++ ) {
|
||||
if ( bitget ( pd->selected_list, st ) ) {
|
||||
if ( pd->selected_line == st ) {
|
||||
seen = TRUE;
|
||||
}
|
||||
seen = TRUE;
|
||||
dmenu_output_formatted_line ( pd->format, cmd_list[st], st, input );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,9 +39,9 @@ xdotool key Return
|
|||
wait ${RPID}
|
||||
RETV=$?
|
||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
||||
if [ "${OUTPUT}" != '2 12 20 21 22 23 24 25 26 27 28 29 32 ' ]
|
||||
if [ "${OUTPUT}" != '2 12 20 21 22 23 24 25 26 27 28 29 ' ]
|
||||
then
|
||||
echo "Got: '${OUTPUT}' expected '2 12 20 21 22 23 24 25 26 27 28 29 32 '"
|
||||
echo "Got: '${OUTPUT}' expected '2 12 20 21 22 23 24 25 26 27 28 29 '"
|
||||
exit 1
|
||||
fi
|
||||
echo ${RETV}
|
||||
|
|
|
@ -10,6 +10,7 @@ sleep 5;
|
|||
xdotool key 'Down'
|
||||
sleep 0.4
|
||||
xdotool key Shift+Return
|
||||
xdotool key Shift+Return
|
||||
xdotool key Return
|
||||
|
||||
# Get result, kill xvfb
|
||||
|
|
Loading…
Add table
Reference in a new issue