Commit 5745c0a1 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

simplify further

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2955 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 15d6857b
Showing with 3 additions and 3 deletions
+3 -3
......@@ -3824,14 +3824,14 @@ void display_main_list(void)
void do_cursorpos(bool constant)
{
char c;
size_t i = 0, cur_xpt = xplustabs() + 1;
size_t i, cur_xpt = xplustabs() + 1;
size_t cur_lenpt = strlenpt(openfile->current->data) + 1;
int linepct, colpct, charpct;
assert(openfile->fileage != NULL && openfile->current != NULL);
if (openfile->current->prev != NULL)
i += get_totsize(openfile->fileage, openfile->current->prev);
i = (openfile->current->prev != NULL) ?
get_totsize(openfile->fileage, openfile->current->prev) : 0;
c = openfile->current->data[openfile->current_x];
openfile->current->data[openfile->current_x] = '\0';
i += mbstrlen(openfile->current->data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment