Commit 1930e810 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Fixing compilation with --enable-tiny --enable-mouse.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 691689d2
Showing with 4 additions and 3 deletions
+4 -3
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* src/text.c: Fix compilation with --enable-tiny --enable-wrapping. * src/text.c: Fix compilation with --enable-tiny --enable-wrapping.
* src/files.c (do_insertfile): Fix compilation with --enable-tiny * src/files.c (do_insertfile): Fix compilation with --enable-tiny
--enable-histories --enable-multibuffer. --enable-histories --enable-multibuffer.
* src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
2014-06-19 Benno Schulenberg <bensberg@justemail.net> 2014-06-19 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()' * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
......
...@@ -1786,8 +1786,6 @@ int do_mouse(void) ...@@ -1786,8 +1786,6 @@ int do_mouse(void)
openfile->current_y = i; openfile->current_y = i;
i += strlenpt(openfile->current->data) / COLS; i += strlenpt(openfile->current->data) / COLS;
} }
#endif
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "do_mouse(): moving to current_y = %ld, index i = %lu\n", fprintf(stderr, "do_mouse(): moving to current_y = %ld, index i = %lu\n",
(long)openfile->current_y, (unsigned long)i); (long)openfile->current_y, (unsigned long)i);
...@@ -1808,7 +1806,9 @@ int do_mouse(void) ...@@ -1808,7 +1806,9 @@ int do_mouse(void)
mouse_x, (unsigned long)openfile->current_x); mouse_x, (unsigned long)openfile->current_x);
#endif #endif
} }
} else { } else
#endif /* NANO_TINY */
{
/* Move to where the click occurred. */ /* Move to where the click occurred. */
for (; openfile->current_y < mouse_y && openfile->current != for (; openfile->current_y < mouse_y && openfile->current !=
openfile->filebot; openfile->current_y++) openfile->filebot; openfile->current_y++)
......
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