mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add an explanatory comment to com.intellij.ide.macro.EditorMacro.getColumnNumber
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user