Hi Bram and list,
How to reproduce:
- Start pure vim with 'rightleft' and concealing
$ vim -Nu NONE -c "set rightleft cole=1 cocu=n"
- Enter insert mode and input 'a' and leave insert mode
ia<ESC>
Expected behavior:
- Cursor moves to the right end. (on 'a')
Actual behavior:
- Move to the left corner.
I attached a patch.
I want to add a test.
Which do you like better?
1. Create a test_rightleft.vim.
2. Add to the test of existing conceal.
p.s.
I believe Vim makes world peace.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/screen.c b/src/screen.c
index 5610d8a..d34c4b2 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4976,7 +4976,12 @@ win_line(wp, lnum, startrow, endrow, nochange)
&& conceal_cursor_line(wp)
&& (int)wp->w_virtcol <= vcol + n_skip)
{
- wp->w_wcol = col - boguscols;
+# ifdef FEAT_RIGHTLEFT
+ if (wp->w_p_rl)
+ wp->w_wcol = W_WIDTH(wp) - col + boguscols - 1;
+ else
+# endif
+ wp->w_wcol = col - boguscols;
wp->w_wrow = row;
did_wcol = TRUE;
}