9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

acme: tag is not current directory #507

Open lolbinarycat opened 3 years ago

lolbinarycat commented 3 years ago

Reproduction steps:

In a shell:

cd /tmp
mkdir real-dir
ln -s symlink real-dir
cd symlink
acme

In acme: win rc In rc window: cd ../real-dir

Expected behavior

Tag begins with /tmp/real-dir/

Actual behavior

Tag begins with /tmp/symlink/

This is a problem because other files will resolve symlinks in the tag, so if you left click a file address in rc that is already open, acme opens a new window instead of going to that address in the existing one. This can easily lead to loss of data if you edit a window that has outdated contents.

bhuntsman commented 3 years ago

As an additional note, when I perform the steps listed above, and then quit Acme, I get several of the following messages on the console:

settag/send tag 1: Broken pipe