Skip to content

Commit 95e3c59

Browse files
committed
docs: Shorten inline comment
1 parent c757505 commit 95e3c59

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

WordPress/src/main/java/org/wordpress/android/ui/posts/editor/GutenbergKitEditorFragment.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,15 @@ class GutenbergKitEditorFragment : EditorFragmentAbstract(), EditorMediaUploadLi
147147
when (type) {
148148
"at-symbol" -> mEditorFragmentListener.showUserSuggestions { result ->
149149
result?.let {
150-
// Append space to suggestion to complete GutenbergKit's autocomplete session,
151-
// otherwise it will immediately restart
150+
// Appended space completes the autocomplete session
152151
gutenbergView.appendTextAtCursor("$it ")
153152
}
154153
}
155154
"plus-symbol" -> {
156155
if (isXPostsEnabled) {
157156
mEditorFragmentListener.showXpostSuggestions { result ->
158157
result?.let {
159-
// Append space to suggestion to complete GutenbergKit's autocomplete session,
160-
// otherwise it will immediately restart
158+
// Appended space completes the autocomplete session
161159
gutenbergView.appendTextAtCursor("$it ")
162160
}
163161
}

0 commit comments

Comments
 (0)