-
Notifications
You must be signed in to change notification settings - Fork 11
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+conceal機能がright-to-leftに対応していない #799
Labels
Comments
Vimで世界を平和にしていきましょう:smile: |
Closed
vim_devには今晩送る。 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;
} |
お。意外とパッチ小さめで素敵。 |
@mattn ありがとー。今、testどうしようか調べ中。 'rightleft' のtestってこのまえ私が書いた |
Post to vim_dev
patch 7.4.1101 テスト書きます!世界平和のために:smile: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ vim -Nu NONE -c "set rightleft cole=1 cocu=n"
カーソルが逆側(左側)に移動してしまう。
案
:h rileft
のBugs
にright-to-leftウィンドウではconceal機能は正しく動かない
と書く。既存で書かれている以下の様な感じで。個人的には
:help
の左右カーソル移動が残念になっているので対応してあげたいなと思っていますが、修正ボリュームは見積もれていません。余談ですがCTRL-AとCTRL-X(足し算、引き算)コマンド
はちょっと修正すればright-to-leftウィンドウでも機能するようになることは把握しています。The text was updated successfully, but these errors were encountered: