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
df0b5ea1
Commit
df0b5ea1
authored
Oct 02, 1994
by
Richard M. Stallman
Browse files
(redisplay_window): If we set PT, and that alters a region
being displayed, call try_window again.
parent
481c0295
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/xdisp.c
src/xdisp.c
+6
-1
No files found.
src/xdisp.c
View file @
df0b5ea1
...
@@ -1148,7 +1148,6 @@ redisplay_window (window, just_this_one)
...
@@ -1148,7 +1148,6 @@ redisplay_window (window, just_this_one)
try_window (window, startp);
try_window (window, startp);
if (cursor_vpos < 0)
if (cursor_vpos < 0)
{
{
/* ??? What should happen here if highlighting a region? */
/* If point does not appear, move point so it does appear */
/* If point does not appear, move point so it does appear */
pos = *compute_motion (startp, 0,
pos = *compute_motion (startp, 0,
((EQ (window, minibuf_window) && startp == 1)
((EQ (window, minibuf_window) && startp == 1)
...
@@ -1168,6 +1167,12 @@ redisplay_window (window, just_this_one)
...
@@ -1168,6 +1167,12 @@ redisplay_window (window, just_this_one)
FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
FRAME_CURSOR_X (f) = max (0, pos.hpos) + XFASTINT (w->left);
FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
FRAME_CURSOR_Y (f) = pos.vpos + XFASTINT (w->top);
}
}
/* If we are highlighting the region,
then we just changed the region, so redisplay to show it. */
cancel_my_columns (XWINDOW (window));
if (!NILP (Vtransient_mark_mode)
&& !NILP (current_buffer->mark_active))
try_window (window, startp);
}
}
goto done;
goto done;
}
}
...
...
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