jbmestelan / nyxt

Nyxt - Be productive.
https://nyxt.atlas.engineer
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix issue with 'load-file' function not considering symbolic links #3

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR fixes the issue with the 'load-file' function in the Nyxt browser not considering symbolic links. The current implementation does not resolve symbolic links to their actual location before attempting to load the file, resulting in the function not recognizing symbolic links.

To address this issue, the 'load-file' function has been modified to call the Common Lisp function 'truename' on the pathname before attempting to load the file. This ensures that the actual location of the file is loaded, even if the pathname is a symbolic link.

Summary of Changes

These changes ensure that the 'load-file' function correctly handles symbolic links and loads the actual location of the file.

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-load-file-symbolic-links

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.