-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(developer): various project fixes 🦕 #10151
Changes from all commits
4f83c9c
149fc5e
ccbb00d
6c918e6
fe772e1
cb8c114
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,11 +231,13 @@ destructor TMRUList.Destroy; | |
end; | ||
|
||
function TMRUList.EllipsisFile(Index: Integer): string; | ||
var | ||
buffer: array[0..MAX_PATH] of char; | ||
begin | ||
Result := Files[Index]; | ||
StrPCopy(buffer, Files[Index]); | ||
|
||
if PathCompactPath(0, PWideChar(Result), GetSystemMetrics(SM_CXSCREEN) div 3) then // I4697 | ||
Result := string(PChar(Result)) // This removes the terminating nul | ||
if PathCompactPath(0, buffer, GetSystemMetrics(SM_CXSCREEN) div 3) then // I4697 | ||
Result := buffer // This removes the terminating nul | ||
else | ||
Result := ExtractFileName(Files[Index]); | ||
end; | ||
Comment on lines
+234
to
243
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was badly buggy previously -- |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I fixed up overlapping shortcut keys in this dialog pane.