summaryrefslogtreecommitdiff
path: root/src/string_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-02-21 16:59:16 +1100
committerMaxime Coste <mawww@kakoune.org>2023-02-21 16:59:16 +1100
commitfa060c2a17e0b52dd5fb3fcd73aab3d176536fb8 (patch)
treecc3503fe6eb406cb3881c6e4d78afcb8605daeb1 /src/string_utils.hh
parentbe49f362059c641ea58807cde3571b14be2cabe7 (diff)
Fix fatal exception when checking if buffer needs to be reloaded
If, for example, the buffer path now is a directory, MappedFile will throw on construction. Using a try block to explicitely allow errors fixes the issue.
Diffstat (limited to 'src/string_utils.hh')
0 files changed, 0 insertions, 0 deletions