[gnome-builder] vim: Remove unneeded MAX macro in move_page up



commit 7c0fc4c26d14a33efe51fe299d57ccdbf6f91dce
Author: Hashem Nasarat <hashem riseup net>
Date:   Sun Oct 12 12:43:41 2014 -0400

    vim: Remove unneeded MAX macro in move_page up
    
    It's never going to be less than 0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738401

 src/editor/gb-editor-vim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 9b958a9..7770c42 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -2471,7 +2471,7 @@ gb_editor_vim_move_page (GbEditorVim                 *vim,
     {
     case GB_EDITOR_VIM_PAGE_UP:
       yalign = 1.0;
-      line = MAX (0, gtk_text_iter_get_line (&iter_top) + SCROLL_OFF);
+      line = gtk_text_iter_get_line (&iter_top) + SCROLL_OFF;
       break;
     case GB_EDITOR_VIM_PAGE_DOWN:
       yalign = 0.0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]