fix bug where the caret may be moved if a different item is selected
this code made sense back when spmenu couldn't define keybinds manually, as then moving between items and moving the caret was one single case.
This commit is contained in:
parent
f6f890ae56
commit
671dbffa1b
|
@ -28,10 +28,12 @@ void moveleft(Arg *arg) {
|
|||
calcoffsets();
|
||||
}
|
||||
|
||||
/*
|
||||
if (cursor > 0 && (!sel || !sel->left || lines > 0)) {
|
||||
cursor = nextrune(-1);
|
||||
drawmenu();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void moveright(Arg *arg) {
|
||||
|
@ -63,10 +65,12 @@ void moveright(Arg *arg) {
|
|||
|
||||
drawmenu();
|
||||
|
||||
/*
|
||||
if (text[cursor] != '\0') {
|
||||
cursor = nextrune(+1);
|
||||
drawmenu();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void movedown(Arg *arg) {
|
||||
|
|
Loading…
Reference in a new issue