]> git.wh0rd.org Git - nano.git/commitdiff
Fixing compilation with --enable-tiny --enable-mouse.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 20 Jun 2014 18:06:22 +0000 (18:06 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 20 Jun 2014 18:06:22 +0000 (18:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 49e0adb89498b0d470b4a821ed5137346ddc0a9d..e1b531ebd9bce2342e1e715c176ad594f647560d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
        * src/text.c: Fix compilation with --enable-tiny --enable-wrapping.
        * src/files.c (do_insertfile): Fix compilation with --enable-tiny
        --enable-histories --enable-multibuffer.
+       * src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
 
 2014-06-19  Benno Schulenberg  <bensberg@justemail.net>
        * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
index 2b6a31b4f11e4cff127033e63ca266c810e9773f..8ea8617ea6a2aa2cdc7fd2587f2959bbb121aeda 100644 (file)
@@ -1786,8 +1786,6 @@ int do_mouse(void)
                openfile->current_y = i;
                i += strlenpt(openfile->current->data) / COLS;
            }
-#endif
-
 #ifdef DEBUG
            fprintf(stderr, "do_mouse(): moving to current_y = %ld, index i = %lu\n",
                        (long)openfile->current_y, (unsigned long)i);
@@ -1808,7 +1806,9 @@ int do_mouse(void)
                        mouse_x, (unsigned long)openfile->current_x);
 #endif
            }
-       } else {
+       } else
+#endif /* NANO_TINY */
+       {
            /* Move to where the click occurred. */
            for (; openfile->current_y < mouse_y && openfile->current !=
                   openfile->filebot; openfile->current_y++)