소스 검색

selextend: clarify: !sel.mode == SEL_IDLE

Hiltjo Posthuma 7 년 전
부모
커밋
6ac8c8aa50
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      st.c

+ 1 - 1
st.c

@@ -461,7 +461,7 @@ selextend(int col, int row, int type, int done)
 {
 	int oldey, oldex, oldsby, oldsey, oldtype;
 
-	if (!sel.mode)
+	if (sel.mode == SEL_IDLE)
 		return;
 	if (done && sel.mode == SEL_EMPTY) {
 		selclear();