瀏覽代碼

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) {


Loading…
取消
儲存