Skip to content

Commit

Permalink
Fix dragging GUI tabs resulting in a crash
Browse files Browse the repository at this point in the history
This was introduced by #1457 which was supposed to be a simple compiler
warning cleanup but it introduced a signed integer bug. Fix that here.

Fix #1473
  • Loading branch information
ychin committed Sep 11, 2024
1 parent 1b5597c commit d8155a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MacVim/PSMTabBarControl/source/PSMTabDragAssistant.m
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ - (void)distributePlaceholdersInTabBar:(PSMTabBarControl *)control

- (void)removeAllPlaceholdersFromTabBar:(PSMTabBarControl *)control
{
NSUInteger i, cellCount = [[control cells] count];
int i, cellCount = (int)[[control cells] count];
for(i = (cellCount - 1); i >= 0; i--){
PSMTabBarCell *cell = [[control cells] objectAtIndex:i];
if([cell isPlaceholder])
Expand Down

0 comments on commit d8155a7

Please sign in to comment.