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
7050d530
Commit
7050d530
authored
Aug 07, 1997
by
Richard M. Stallman
Browse files
(current_column): Update ptr differently at newline
so that current_column_bol_cache is set properly.
parent
2cad2e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/indent.c
src/indent.c
+7
-5
No files found.
src/indent.c
View file @
7050d530
...
...
@@ -349,10 +349,12 @@ current_column ()
col
+=
XVECTOR
(
DISP_CHAR_VECTOR
(
dp
,
c
))
->
size
;
else
if
(
c
>=
040
&&
c
<
0177
)
col
++
;
else
if
(
c
==
'\n'
)
break
;
else
if
(
c
==
'\r'
&&
EQ
(
current_buffer
->
selective_display
,
Qt
))
break
;
else
if
(
c
==
'\n'
||
(
c
==
'\r'
&&
EQ
(
current_buffer
->
selective_display
,
Qt
)))
{
ptr
++
;
break
;
}
else
if
(
c
==
'\t'
)
{
if
(
tab_seen
)
...
...
@@ -375,7 +377,7 @@ current_column ()
if
(
ptr
==
BEGV_ADDR
)
current_column_bol_cache
=
BEGV
;
else
current_column_bol_cache
=
PTR_CHAR_POS
(
(
ptr
+
1
)
);
current_column_bol_cache
=
PTR_CHAR_POS
(
ptr
);
last_known_column
=
col
;
last_known_column_point
=
PT
;
last_known_column_modified
=
MODIFF
;
...
...
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