소스 검색

Disable rollover at edges on scroll

master
Arun Prakash Jana 5 년 전
부모
커밋
6001eeb9a4
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      src/nnn.c

+ 3
- 2
src/nnn.c 파일 보기

@@ -4303,13 +4303,14 @@ nochange:


#if NCURSES_MOUSE_VERSION > 1 #if NCURSES_MOUSE_VERSION > 1
/* Scroll up */ /* Scroll up */
if (event.bstate == BUTTON4_PRESSED && ndents) { if (event.bstate == BUTTON4_PRESSED && ndents && (cfg.rollover || cur)) {
move_cursor((cur + ndents - 1) % ndents, 0); move_cursor((cur + ndents - 1) % ndents, 0);
break; break;
} }


/* Scroll down */ /* Scroll down */
if (event.bstate == BUTTON5_PRESSED && ndents) { if (event.bstate == BUTTON5_PRESSED && ndents
&& (cfg.rollover || (cur != ndents - 1))) {
move_cursor((cur + 1) % ndents, 0); move_cursor((cur + 1) % ndents, 0);
break; break;
} }


||||||
x
 
000:0
불러오는 중...
취소
저장