File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -495,20 +495,22 @@ navCmd navNode::doNavigation(navCmd cmd) {
495
495
idx_t nsel=sel;
496
496
navCmd rCmd=cmd;
497
497
switch (cmd.cmd ) {
498
- /* case scrlUpCmd:
499
- if (!target->isVariant())
500
- root->out.doNav(cmd,*this);*/
501
- case downCmd:
502
- nsel--;
503
- if (nsel<0 ) {if (wrap ()) nsel=sz ()-1 ; else nsel=0 ;}
504
- break ;
505
498
/* case scrlDownCmd:
506
499
if (!target->isVariant())
507
500
root->out.doNav(cmd,*this);*/
508
501
case upCmd:
509
- nsel++;
510
- if (nsel>=sz ()) {if (wrap ()) nsel=0 ; else nsel=sz ()-1 ;}
511
- break ;
502
+ nsel++;
503
+ if (nsel>=sz ()) {if (wrap ()) nsel=0 ; else nsel=sz ()-1 ;}
504
+ break ;
505
+ /* case scrlUpCmd:
506
+ if (!target->isVariant())
507
+ root->out.doNav(cmd,*this);*/
508
+ case downCmd:
509
+ if (nsel||!target->is (_asPad)) {
510
+ nsel--;
511
+ if (nsel<0 ) {if (wrap ()) nsel=sz ()-1 ; else nsel=0 ;}
512
+ break ;
513
+ }
512
514
case escCmd:
513
515
assert (root);
514
516
rCmd=root->exit ();
You can’t perform that action at this time.
0 commit comments