Ticket #1834: 1834-show-two-upper-lines-when_Find-file_then_F4.patch

File 1834-show-two-upper-lines-when_Find-file_then_F4.patch, 651 bytes (added by vit_r, 13 years ago)
  • edit/edit.c

    From 0dec6b2f9cb88fc9e3c74204bea29d851e23051a Mon Sep 17 00:00:00 2001
    From: Vit Rosin <vit_r@list.ru>
    Date: Thu, 19 Nov 2009 16:55:50 +0000
    Subject: [PATCH] show two upper lines when_M-?_then_F4
    
    ---
     edit/edit.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/edit/edit.c b/edit/edit.c
    index e2c36d5..41ae765 100644
    a b edit_init (WEdit *edit, int lines, int columns, const char *filename, 
    837837    } else { 
    838838        if (line <= 0) 
    839839            line = 1; 
    840         edit_move_display (edit, line - 1); 
     840        edit_move_display (edit, line - 3); 
    841841        edit_move_to_line (edit, line - 1); 
    842842    } 
    843843