Browse Source

Fixed build.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4038 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
4792788d4c
  1. 5
      src/Main/Base/Project/Src/Editor/DocumentUtilitites.cs

5
src/Main/Base/Project/Src/Editor/DocumentUtilitites.cs

@ -5,12 +5,13 @@ @@ -5,12 +5,13 @@
// <version>$Revision$</version>
// </file>
using ICSharpCode.SharpDevelop.Editor;
using System;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Gui;
using ICSharpCode.AvalonEdit.Utils;
using ICSharpCode.SharpDevelop.Dom.Refactoring;
using ICSharpCode.SharpDevelop.Editor;
using System.Windows.Documents;
namespace ICSharpCode.SharpDevelop.Editor
{
@ -83,7 +84,7 @@ namespace ICSharpCode.SharpDevelop.Editor @@ -83,7 +84,7 @@ namespace ICSharpCode.SharpDevelop.Editor
/// <returns>The offset of the word start, or -1 if there is no word start before the specified offset.</returns>
public static int FindPrevWordStart(this IDocument document, int offset)
{
return TextUtilities.GetNextCaretPosition(GetTextSource(document), offset, true, CaretPositioningMode.WordStart);
return TextUtilities.GetNextCaretPosition(GetTextSource(document), offset, LogicalDirection.Backward, CaretPositioningMode.WordStart);
}
/// <summary>

Loading…
Cancel
Save