소스 검색

limit direction keys in vline

master
Connor Lane Smith 12 년 전
부모
커밋
ebd94a6c00
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      dmenu.c

+ 4
- 0
dmenu.c 파일 보기

@@ -328,6 +328,8 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(-1);
break;
}
if(lines > 0)
return;
/* fallthrough */
case XK_Up:
if(sel && sel->left && (sel = sel->left)->right == curr) {
@@ -356,6 +358,8 @@ keypress(XKeyEvent *ev) {
cursor = nextrune(+1);
break;
}
if(lines > 0)
return;
/* fallthrough */
case XK_Down:
if(sel && sel->right && (sel = sel->right) == next) {


불러오는 중...
취소
저장