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
2d031b89
Commit
2d031b89
authored
May 26, 2003
by
Andreas Schwab
Browse files
(try_window_id): Avoid aborting if PT is inside a
partially visible line.
parent
d22be14d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
src/ChangeLog
src/ChangeLog
+7
-0
src/xdisp.c
src/xdisp.c
+8
-2
No files found.
src/ChangeLog
View file @
2d031b89
2003-05-27 Andreas Schwab <schwab@suse.de>
* xdisp.c (try_window_id): Avoid aborting if PT is inside a
partially visible line.
* alloc.c (Fgarbage_collect): Fix last change.
2003-05-26 John Paul Wallington <jpw@gnu.org>
* xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
...
...
src/xdisp.c
View file @
2d031b89
...
...
@@ -12881,7 +12881,10 @@ try_window_id (w)
the window end again, since its offset from Z hasn't changed. */
r0 = MATRIX_FIRST_TEXT_ROW (current_matrix);
if (CHARPOS (start) == MATRIX_ROW_START_CHARPOS (r0) + delta
&& BYTEPOS (start) == MATRIX_ROW_START_BYTEPOS (r0) + delta_bytes)
&& BYTEPOS (start) == MATRIX_ROW_START_BYTEPOS (r0) + delta_bytes
/* PT must not be in a partially visible line. */
&& !(PT >= MATRIX_ROW_START_CHARPOS (row) + delta
&& MATRIX_ROW_BOTTOM_Y (row) > window_text_bottom_y (w)))
{
/* Adjust positions in the glyph matrix. */
if (delta || delta_bytes)
...
...
@@ -12926,7 +12929,10 @@ try_window_id (w)
as is, without changing glyph positions since no text has
been added/removed in front of the window end. */
r0 = MATRIX_FIRST_TEXT_ROW (current_matrix);
if (TEXT_POS_EQUAL_P (start, r0->start.pos))
if (TEXT_POS_EQUAL_P (start, r0->start.pos)
/* PT must not be in a partially visible line. */
&& !(PT >= MATRIX_ROW_START_CHARPOS (row)
&& MATRIX_ROW_BOTTOM_Y (row) > window_text_bottom_y (w)))
{
/* We have to compute the window end anew since text
can have been added/removed after it. */
...
...
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