Closed zhaog6 closed 2 years ago
Could you please explain what was wrong before and what does this fix? Thanks for your contribution.
Could you please explain what was wrong before and what does this fix? Thanks for your contribution.
Updated in comment.
The directory name miss a character. For example, using the original shell file, the return value of the
dirname
is/home/zhaog6/tes
when the edp file to edit is in/home/zhaog6/test
. The wrong occur on line 219 in shell.cpp.The PR fixs right side of substring of
path
becausesubstr
is closed on the left side and open on the right side.