qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs qe.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs qe.c
Date: Sun, 1 Jan 2017 07:51:22 -0500 (EST)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        17/01/01 07:51:22

Modified files:
        .              : qe.c 

Log message:
        basic: C-l twice recenters the window

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/qe.c?cvsroot=qemacs&r1=1.244&r2=1.245

Patches:
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -b -r1.244 -r1.245
--- qe.c        31 Dec 2016 18:45:08 -0000      1.244
+++ qe.c        1 Jan 2017 12:51:22 -0000       1.245
@@ -2,7 +2,7 @@
  * QEmacs, tiny but powerful multimode editor
  *
  * Copyright (c) 2000-2002 Fabrice Bellard.
- * Copyright (c) 2000-2016 Charlie Gordon.
+ * Copyright (c) 2000-2017 Charlie Gordon.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -7117,7 +7117,12 @@
     QEmacsState *qs = s->qe_state;
 
     qs->complete_refresh = 1;
+
+    if (s->qe_state->last_cmd_func == (CmdFunc)do_refresh_complete) {
+        do_center_cursor(s, 1);
+    } else {
     do_refresh(s);
+    }
 }
 
 void do_other_window(EditState *s)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]