From 89d9e60b8a35f2c691d820855e02d2fa45d3bc09 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 7 Jun 2008 15:36:07 +0200 Subject: [PATCH] Add 'rightleft' support to ATSUI renderer --- src/MacVim/MMAtsuiTextView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MacVim/MMAtsuiTextView.m b/src/MacVim/MMAtsuiTextView.m index 470e006094..7990b63da1 100644 --- a/src/MacVim/MMAtsuiTextView.m +++ b/src/MacVim/MMAtsuiTextView.m @@ -1121,6 +1121,10 @@ enum { } 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];