Skip to content

Commit

Permalink
Fix display issue with marked text at the edge of a window
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaoru Yoshida authored and b4winckler committed Jul 2, 2008
1 parent 26335ef commit 83c4f29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MacVim/MMTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,11 @@ - (void)drawRect:(NSRect)rect

// Calculate how many wide-font characters can be inserted at
// a first line, and draw those characters.
int cols = ([ts actualColumns] - insertionPointColumn) / 2;
int cols = ([ts actualColumns] - insertionPointColumn);
NSFont *theFont = [markedTextAttributes
valueForKey:NSFontAttributeName];
if (theFont == [ts fontWide])
cols = cols / 2;
int done = 0;
int lend = cols > len ? len : cols;
NSAttributedString *aString = [markedText attributedSubstringFromRange:
Expand Down

0 comments on commit 83c4f29

Please sign in to comment.