Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c96e5d6a
Commit
c96e5d6a
authored
Sep 26, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cmds.c (internal_self_insert): Fix EMACS_INT type typo.
parent
8de9005d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/ChangeLog
src/ChangeLog
+1
-1
src/cmds.c
src/cmds.c
+1
-1
No files found.
src/ChangeLog
View file @
c96e5d6a
...
...
@@ -132,7 +132,7 @@
* cmds.c (move_point): New function, that does the gist of
Fforward_char and Fbackward_char, but does so while checking
for integer overflow more accurately.
(Fforward_char, Fbackward_char
, internal_self_insert
): Use it.
(Fforward_char, Fbackward_char): Use it.
(Fforward_line, Fend_of_line, internal_self_insert)
(internal_self_insert):
Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough.
...
...
src/cmds.c
View file @
c96e5d6a
...
...
@@ -471,7 +471,7 @@ internal_self_insert (int c, EMACS_INT n)
}
replace_range
(
PT
,
PT
+
chars_to_delete
,
string
,
1
,
1
,
1
);
move_point
(
n
+
spaces_to_insert
,
1
);
Fforward_char
(
make_number
(
n
+
spaces_to_insert
)
);
}
else
if
(
n
>
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