[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[24282] jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea. java
From:       daleanson () users ! sourceforge ! net
Date:       2016-01-01 20:04:42
Message-ID: E1aF5wM-0002Mb-BX () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 24282
          http://sourceforge.net/p/jedit/svn/24282
Author:   daleanson
Date:     2016-01-01 20:04:42 +0000 (Fri, 01 Jan 2016)
Log Message:
-----------
Fix for bug #3911 when saving a buffer the text area scrolls to left.

Modified Paths:
--------------
    jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java

Modified: jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java
===================================================================
--- jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java	2016-01-01 19:22:30 UTC (rev \
                24281)
+++ jEdit/trunk/org/gjt/sp/jedit/textarea/TextArea.java	2016-01-01 20:04:42 UTC (rev \
24282) @@ -4852,8 +4852,6 @@
 		if(buffer == null)
 			return;
 
-		final int hbarPosition = horizontal.getValue();
-		
 		if(buffer.getBooleanProperty("elasticTabstops"))
 		{
 			//call this only if it was previously off
@@ -4912,7 +4910,7 @@
 		{
 			public void run()
 			{
-				horizontal.setValue(hbarPosition);
+				scrollToCaret(false);
 			}
 		});
 		

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic