diff options
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/normal.cc b/src/normal.cc index eb50642e..db878909 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -193,10 +193,7 @@ void goto_commands(Context& context, NormalParams params) Buffer* buffer = BufferManager::instance().get_buffer_ifp(path); if (not buffer) - buffer = create_file_buffer(path); - - if (buffer == nullptr) - throw runtime_error(format("unable to open file '{}'", path)); + buffer = open_file_buffer(path); if (buffer != &context.buffer()) { |
