Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
faf77fb1
Commit
faf77fb1
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: don't bother making the next line of an end point NULL
parent
b0b24d9c
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+4
-5
src/winio.c
with
4 additions
and
5 deletions
+4
-5
src/winio.c
View file @
faf77fb1
...
...
@@ -3117,7 +3117,6 @@ void display_main_list(void)
* position always. In any case we reset suppress_cursorpos to FALSE. */
void
do_cursorpos
(
bool
constant
)
{
filestruct
*
f
;
char
c
;
size_t
i
,
cur_xpt
=
xplustabs
()
+
1
;
size_t
cur_lenpt
=
strlenpt
(
openfile
->
current
->
data
)
+
1
;
...
...
@@ -3126,16 +3125,16 @@ void do_cursorpos(bool constant)
assert
(
openfile
->
fileage
!=
NULL
&&
openfile
->
current
!=
NULL
);
/* Determine the size of the file up to the cursor. */
f
=
openfile
->
current
->
next
;
c
=
openfile
->
current
->
data
[
openfile
->
current_x
];
openfile
->
current
->
next
=
NULL
;
openfile
->
current
->
data
[
openfile
->
current_x
]
=
'\0'
;
i
=
get_totsize
(
openfile
->
fileage
,
openfile
->
current
);
openfile
->
current
->
data
[
openfile
->
current_x
]
=
c
;
openfile
->
current
->
next
=
f
;
/* When not at EOF, subtract 1 for an overcounted newline. */
if
(
openfile
->
current
!=
openfile
->
filebot
)
i
--
;
/* If the position needs to be suppressed, don't suppress it next time. */
if
(
suppress_cursorpos
&&
constant
)
{
...
...
This diff is collapsed.
Click to expand 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
Menu
Projects
Groups
Snippets
Help