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
dd5f6267
Commit
dd5f6267
authored
Mar 29, 1994
by
Karl Heuer
Browse files
(display_text_line): Handle selective display at window edge.
parent
36363ac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/xdisp.c
src/xdisp.c
+13
-3
No files found.
src/xdisp.c
View file @
dd5f6267
...
...
@@ -2262,8 +2262,15 @@ display_text_line (w, start, vpos, hpos, taboffset)
if
(
pos
<
ZV
)
{
if
(
FETCH_CHAR
(
pos
)
==
'\n'
)
/* If stopped due to a newline, start next line after it */
pos
++
;
{
/* If stopped due to a newline, start next line after it */
pos
++
;
/* Check again for hidden lines, in case the newline occurred exactly
at the right margin. */
while
(
pos
<
ZV
&&
selective
>
0
&&
indented_beyond_p
(
pos
,
selective
))
pos
=
find_next_newline
(
pos
,
1
);
}
else
/* Stopped due to right margin of window */
{
...
...
@@ -2273,7 +2280,10 @@ display_text_line (w, start, vpos, hpos, taboffset)
/* Truncating => start next line after next newline,
and point is on this line if it is before the newline,
and skip none of first char of next line */
pos
=
find_next_newline
(
pos
,
1
);
do
pos
=
find_next_newline
(
pos
,
1
);
while
(
pos
<
ZV
&&
selective
>
0
&&
indented_beyond_p
(
pos
,
selective
));
val
.
hpos
=
XINT
(
w
->
hscroll
)
?
1
-
XINT
(
w
->
hscroll
)
:
0
;
lastpos
=
pos
-
(
FETCH_CHAR
(
pos
-
1
)
==
'\n'
);
...
...
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