Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4520b858
Commit
4520b858
authored
Aug 29, 2010
by
Jan D
Browse files
* nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
parent
e2046ecf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/nsterm.m
src/nsterm.m
+12
-0
No files found.
src/ChangeLog
View file @
4520b858
2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
2010-08-26 Kenichi Handa <handa@m17n.org>
* xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
...
...
src/nsterm.m
View file @
4520b858
...
...
@@ -2251,6 +2251,11 @@ External call (RIF): draw cursor
struct frame *f = WINDOW_XFRAME (w);
struct glyph *phys_cursor_glyph;
int overspill;
struct glyph *cursor_glyph;
/* If cursor is out of bounds, don't draw garbage. This can happen
in mini-buffer windows when switching between echo area glyphs
and mini-buffer. */
NSTRACE (dumpcursor);
//fprintf(stderr, "drawcursor (%d,%d) activep = %d\tonp = %d\tc_type = %d\twidth = %d\n",x,y, active_p,on_p,cursor_type,cursor_width);
...
...
@@ -2328,6 +2333,13 @@ External call (RIF): draw cursor
case BAR_CURSOR:
s = r;
s.size.width = min (cursor_width, 2); //FIXME(see above)
/* If the character under cursor is R2L, draw the bar cursor
on the right of its glyph, rather than on the left. */
cursor_glyph = get_phys_cursor_glyph (w);
if ((cursor_glyph->resolved_level & 1) != 0)
s.origin.x += cursor_glyph->pixel_width - s.size.width;
NSRectFill (s);
break;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment