updated for version 7.0066
diff --git a/src/gui_kde_x11.cc b/src/gui_kde_x11.cc
index 3bb8076..21969c5 100644
--- a/src/gui_kde_x11.cc
+++ b/src/gui_kde_x11.cc
@@ -970,10 +970,20 @@
     QPainter p(gui.w);
     p.setPen(color);
     p.fillRect(
+#ifdef FEAT_RIGHTLEFT
+	    /* vertical line should be on the right of current point */
+	    CURSOR_BAR_RIGHT ? FILL_X(gui.col + 1) - w :
+#endif
 	    FILL_X(gui.col),
 	    FILL_Y(gui.row) + gui.char_height - h + 1,
 	    w, h - 2, QColor( color, color));
-    p.drawRect(FILL_X(gui.col), FILL_Y(gui.row) + gui.char_height - h
+    p.drawRect(
+#ifdef FEAT_RIGHTLEFT
+	    /* vertical line should be on the right of current point */
+	    CURSOR_BAR_RIGHT ? FILL_X(gui.col + 1) - w :
+#endif
+	    FILL_X(gui.col),
+	    FILL_Y(gui.row) + gui.char_height - h
 						       + (int)p_linespace / 2,
 	    w, h - (int)p_linespace);
 }//}}}