diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-05 16:42:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-06 09:40:33 +0100 |
commit | fa4d9da2373995f16bd6a494f0e39077d11096d3 (patch) | |
tree | 904e3276763ea38d61e32bf23c0700edbe465ead /AK/StringUtils.h | |
parent | 74070ef74dae78fed179f80ee18f5b079b8843ef (diff) | |
download | serenity-fa4d9da2373995f16bd6a494f0e39077d11096d3.zip |
HackStudio: Make sure project files are created with an absolute path
This fixes an issue were "Find in Files" would not use the up-to-date
content of a file with unsaved changes.
The issue existed because 'FindInFilesWidget' uses
Project::for_each_text_file, which retrieves files by their absolute
path. However, when a file is opened in an Editor, it is created with
a relative path.
This caused us to store two ProjectFile objects that refer to the same
file - one with a relative path and one with an absolute path.
Diffstat (limited to 'AK/StringUtils.h')
0 files changed, 0 insertions, 0 deletions