Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
55836b73
Commit
55836b73
authored
May 02, 1994
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(show_mouse_face): Fix test for cursor in highlighted area.
(note_mouse_highlight): Reorder test for simplicity.
parent
d38bb695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/xterm.c
src/xterm.c
+6
-6
No files found.
src/xterm.c
View file @
55836b73
...
@@ -353,6 +353,7 @@ static void redraw_previous_char ();
...
@@ -353,6 +353,7 @@ static void redraw_previous_char ();
static void redraw_following_char ();
static void redraw_following_char ();
static unsigned int x_x_to_emacs_modifiers ();
static unsigned int x_x_to_emacs_modifiers ();
static int fast_find_position ();
static void note_mouse_highlight ();
static void note_mouse_highlight ();
static void clear_mouse_face ();
static void clear_mouse_face ();
static void show_mouse_face ();
static void show_mouse_face ();
...
@@ -2170,8 +2171,9 @@ note_mouse_highlight (f, x, y)
...
@@ -2170,8 +2171,9 @@ note_mouse_highlight (f, x, y)
break;
break;
pos = ptr[i];
pos = ptr[i];
/* Is it outside the displayed active region (if any)? */
/* Is it outside the displayed active region (if any)? */
if (pos > 0
if (pos <= 0)
&& ! (EQ (window, mouse_face_window)
clear_mouse_face ();
else if (! (EQ (window, mouse_face_window)
&& pos >= mouse_face_beg && pos < mouse_face_end))
&& pos >= mouse_face_beg && pos < mouse_face_end))
{
{
Lisp_Object mouse_face, overlay, position;
Lisp_Object mouse_face, overlay, position;
...
@@ -2277,8 +2279,6 @@ note_mouse_highlight (f, x, y)
...
@@ -2277,8 +2279,6 @@ note_mouse_highlight (f, x, y)
ZV = ozv;
ZV = ozv;
current_buffer = obuf;
current_buffer = obuf;
}
}
else if (pos <= 0)
clear_mouse_face ();
}
}
}
}
...
@@ -2366,7 +2366,7 @@ show_mouse_face (hl)
...
@@ -2366,7 +2366,7 @@ show_mouse_face (hl)
/* If the cursor's in the text we are about to rewrite,
/* If the cursor's in the text we are about to rewrite,
turn the cursor off. */
turn the cursor off. */
if (i == curs_y
if (i == curs_y
&& (curs_x >= beg
row
- 1
||
curs_x <= end
row
))
&& (curs_x >= beg
col
- 1
&&
curs_x <= end
col
))
{
{
x_display_cursor (f, 0);
x_display_cursor (f, 0);
cursor_off = 1;
cursor_off = 1;
...
...
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