Skip to content

Commit

Permalink
Issue #530
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrojdeCTL committed Oct 16, 2018
1 parent 855d0f4 commit 86a1efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DirListing.jsx=4
DirTree.jsx=5
FilePanelService.java=9
FileView.java=7
FileView.java=8
FileView.jsx=28
Grep.jsx=3
GrepResults.jsx=7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down Expand Up @@ -87,7 +88,7 @@ public FileView(FileInfo info, Query query) throws IOException {
}

// one-pass forward
try (Stream<String> stream = Files.lines(path)) {
try (Stream<String> stream = Files.lines(path, StandardCharsets.ISO_8859_1)) {
if (lineIndex > 0) {
bufferStart = lineIndex - bufferSize/2;
if (bufferStart < 0)
Expand Down

0 comments on commit 86a1efc

Please sign in to comment.