fix issues with movement
This commit is contained in:
parent
ceec442bfe
commit
eebad002cd
11
libs/arg.c
11
libs/arg.c
|
@ -256,7 +256,16 @@ moveword(const Arg *arg)
|
|||
void
|
||||
movecursor(const Arg *arg)
|
||||
{
|
||||
cursor = nextrune(arg->i);
|
||||
if (arg->i < 0) {
|
||||
if (cursor > 0) {
|
||||
cursor = nextrune(-1);
|
||||
}
|
||||
} else {
|
||||
if (text[cursor]) {
|
||||
cursor = nextrune(+1);
|
||||
}
|
||||
}
|
||||
|
||||
drawmenu();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue