diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-07-25 22:38:28 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-07-25 22:38:28 -0300 |
commit | 2144093fe694a82f270d6b4f84a6b09db8820c49 (patch) | |
tree | 54c28f0701df29b6296a35165ad164da70bfe9db /core/os/file_access.cpp | |
parent | d2d48e2a7a7ed04331597bcfd7b6c719da2b67c3 (diff) | |
download | redot-engine-2144093fe694a82f270d6b4f84a6b09db8820c49.tar.gz |
Fix cvs files freezing the editor when a double quote is not closed
Diffstat (limited to 'core/os/file_access.cpp')
-rw-r--r-- | core/os/file_access.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<String> FileAccess::get_csv_line(String delim) const { String l; int qc = 0; do { + ERR_FAIL_COND_V(eof_reached(), Vector<String>()); + l += get_line() + "\n"; qc = 0; for (int i = 0; i < l.length(); i++) { |