Permalink
Browse files

Add 'rightleft' support to ATSUI renderer

  • Loading branch information...
1 parent 0ea7546 commit 89d9e60b8a35f2c691d820855e02d2fa45d3bc09 @b4winckler b4winckler committed Jun 7, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/MacVim/MMAtsuiTextView.m
View
4 src/MacVim/MMAtsuiTextView.m
@@ -1121,6 +1121,10 @@ - (void)drawInsertionPointAtRow:(int)row column:(int)col shape:(int)shape
} else if (MMInsertionPointVertical == shape) {
int frac = (cellSize.width * percent + 99)/100;
rect.size.width = frac;
+ } else if (MMInsertionPointVerticalRight == shape) {
+ int frac = (cellSize.width * percent + 99)/100;
+ rect.origin.x += rect.size.width - frac;
+ rect.size.width = frac;
}
[color set];

0 comments on commit 89d9e60

Please sign in to comment.