Skip to content

Commit

Permalink
fix readersearch unit test failed when search backward in the very fi…
Browse files Browse the repository at this point in the history
…rst page
  • Loading branch information
chrox committed Sep 16, 2015
1 parent 4ca58a8 commit 9d5a45a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ endif
# tar: tar package for zsync

$(OUTPUT_DIR)/tar:
cd $(TAR_DIR) && patch -N -p1 < ../tar-0001-fix-build-failure.patch
-cd $(TAR_DIR) && patch -N -p1 < ../tar-0001-fix-build-failure.patch
cd $(TAR_DIR) && ./configure -q LIBS=$(if $(WIN32),,-lrt) \
$(if $(EMULATE_READER),,--host=$(CHOST)) \
$(if $(KINDLE_LEGACY),--disable-largefile,)
Expand Down
2 changes: 1 addition & 1 deletion cre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ static int findText(lua_State *L) {
start = rc.top;
} else if ( origin == -1 ) {
// from the first page to current page
end = rc.top - 1;
end = rc.top + 1;
} else { // origin == 1
// from next page to the last page
start = rc.bottom + 1;
Expand Down

0 comments on commit 9d5a45a

Please sign in to comment.