mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-10 17:06:37 -04:00
[Listview] Make str code more explicit.
This commit is contained in:
parent
cd4607c77c
commit
de89be5c95
1 changed files with 4 additions and 2 deletions
|
@ -290,8 +290,10 @@ static void update_element ( listview *lv, unsigned int tb, unsigned int index,
|
||||||
|
|
||||||
if ( lv->boxes[tb].index ) {
|
if ( lv->boxes[tb].index ) {
|
||||||
if ( index < 10 ) {
|
if ( index < 10 ) {
|
||||||
char str[2] = "0";
|
char str[2] = {
|
||||||
str[0] = ((index+1)%10)+'0';
|
((index+1)%10)+'0',
|
||||||
|
'\0'
|
||||||
|
};
|
||||||
textbox_text( lv->boxes[tb].index, str );
|
textbox_text( lv->boxes[tb].index, str );
|
||||||
} else {
|
} else {
|
||||||
textbox_text( lv->boxes[tb].index, " " );
|
textbox_text( lv->boxes[tb].index, " " );
|
||||||
|
|
Loading…
Add table
Reference in a new issue