Make select behave more Rasi-ish

This commit is contained in:
Dave Davenport 2016-06-26 11:00:23 +02:00
parent 40f95ae81f
commit c87e91b6d9
3 changed files with 4 additions and 5 deletions

View File

@ -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 );
}
}

View File

@ -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}

View File

@ -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