[944] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r931 - branches/barnowl_unicode/owl

daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:11:24 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon,  4 Feb 2008 21:23:16 -0500 (EST)

Author: asedeno
Date: 2008-02-04 21:23:16 -0500 (Mon, 04 Feb 2008)
New Revision: 931

Modified:
   branches/barnowl_unicode/owl/editwin.c
Log:
unicode/glib branch
I think I like this better.

Modified: branches/barnowl_unicode/owl/editwin.c
===================================================================
--- branches/barnowl_unicode/owl/editwin.c	2008-02-05 01:33:04 UTC (rev 930)
+++ branches/barnowl_unicode/owl/editwin.c	2008-02-05 02:23:16 UTC (rev 931)
@@ -885,11 +885,10 @@
 
   /* are we starting on a space character? */
   i = _owl_editwin_get_index_from_xy(e);
-  while (e->buff[i] == ' ' || e->buff[i] == '\n' || e->buff[i] == '\0') {
+  while (i > e->lock && (e->buff[i] == ' ' || e->buff[i] == '\n' || e->buff[i] == '\0')) {
     /* find the first non-space */
     owl_editwin_key_left(e);      
     i = _owl_editwin_get_index_from_xy(e);
-    if (i == e->lock) break;
   }
 
   /* find the last non-space */


home help back first fref pref prev next nref lref last post