add an explanatory comment to com.intellij.ide.macro.EditorMacro.getColumnNumber

This commit is contained in:
peter
2014-02-25 14:38:25 +01:00
parent e3fde0616c
commit 30a899f729
@@ -59,6 +59,9 @@ public abstract class EditorMacro extends Macro {
return null;
}
/**
* @return 1-based column index where tabs are treated as single characters. External tools don't know about IDEA's tab size.
*/
protected static String getColumnNumber(Editor editor, LogicalPosition pos) {
if (EditorUtil.inVirtualSpace(editor, pos)) {
return String.valueOf(pos.column + 1);