Skip to content

Commit e6a5340

Browse files
committed
More info to status bar...
1 parent 3fb87eb commit e6a5340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FlashDevelop/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,9 +1413,9 @@ public void OnScintillaControlUpdateControl(ScintillaControl sci)
14131413
ITabbedDocument document = DocumentManager.FindDocument(sci);
14141414
if (sci != null && document != null && document.IsEditable)
14151415
{
1416-
Int32 column = sci.Column(sci.CurrentPos) + 1;
1417-
Int32 line = sci.CurrentLine + 1;
14181416
String statusText = " " + TextHelper.GetString("Info.StatusText");
1417+
String line = sci.CurrentLine + 1 + " / " + sci.LineCount.ToString();
1418+
String column = sci.Column(sci.CurrentPos) + 1 + " / " + (sci.Column(sci.LineEndPosition(sci.CurrentLine)) + 1).ToString();
14191419
var oldOS = this.OSVersion.Major < 6; // Vista is 6.0 and ok...
14201420
String file = oldOS ? PathHelper.GetCompactPath(sci.FileName) : sci.FileName;
14211421
String eol = (sci.EOLMode == 0) ? "CR+LF" : ((sci.EOLMode == 1) ? "CR" : "LF");

0 commit comments

Comments
 (0)