From 4d7b46988f28ad68de38ce5384f82781fbbd7cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 5 May 2022 17:37:00 +0200 Subject: [PATCH] documents.md: minor --- topics/basics/architectural_overview/documents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/basics/architectural_overview/documents.md b/topics/basics/architectural_overview/documents.md index b013d4ce7..f7f04637c 100644 --- a/topics/basics/architectural_overview/documents.md +++ b/topics/basics/architectural_overview/documents.md @@ -52,7 +52,7 @@ Besides, any operations which modify the contents of the document must be wrappe If multiple documents are modified within a command, undoing this command will, by default, show a confirmation dialog to the user. If the file corresponding to a `Document` is read-only (for example, not checked out from the version control system), document modifications will fail. -Thus, before modifying the `Document`, it is necessary to call [`ReadonlyStatusHandler.getInstance(project).ensureFilesWritable()`](upsource:///platform/core-api/src/com/intellij/openapi/vfs/ReadonlyStatusHandler.java) to check out the file. +Thus, before modifying the `Document`, it is necessary to call [`ReadonlyStatusHandler.ensureFilesWritable()`](upsource:///platform/core-api/src/com/intellij/openapi/vfs/ReadonlyStatusHandler.java) to check out the file. All text strings passed to `Document` modification methods (`setText()`, `insertString()`, `replaceString()`) must use only `\n` as line separators.