From 2144093fe694a82f270d6b4f84a6b09db8820c49 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Tue, 25 Jul 2017 22:38:28 -0300 Subject: Fix cvs files freezing the editor when a double quote is not closed --- core/os/file_access.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/os/file_access.cpp') diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 2bb676381f..7f5a84843c 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -300,6 +300,8 @@ Vector FileAccess::get_csv_line(String delim) const { String l; int qc = 0; do { + ERR_FAIL_COND_V(eof_reached(), Vector()); + l += get_line() + "\n"; qc = 0; for (int i = 0; i < l.length(); i++) { -- cgit v1.2.3