Move up/down on left/right when !lines
This commit is contained in:
parent
cb6b01950d
commit
1c491bba9c
10
libs/arg.c
10
libs/arg.c
|
@ -4,6 +4,11 @@ void moveleft(Arg *arg) {
|
|||
int i, offscreen = 0;
|
||||
int argu = arg->i ? arg->i : 1;
|
||||
|
||||
if (!lines) {
|
||||
moveup(arg);
|
||||
return;
|
||||
}
|
||||
|
||||
if (columns > 1) {
|
||||
if (!sel)
|
||||
return;
|
||||
|
@ -35,6 +40,11 @@ void moveright(Arg *arg) {
|
|||
int i, offscreen = 0;
|
||||
int argu = arg->i ? arg->i : 1;
|
||||
|
||||
if (!lines) {
|
||||
movedown(arg);
|
||||
return;
|
||||
}
|
||||
|
||||
if (columns > 1) {
|
||||
if (!sel)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue