IJPL-181069 yaml: smart delete Backspace handler: more generic "isWhitespace" checking

(IJ-CR-160001)

GitOrigin-RevId: 079e2e0ae53c7a8757bd98265a3280337b02e862
This commit is contained in:
vladimir.petrenko
2025-04-14 11:19:25 +00:00
committed by intellij-monorepo-bot
parent 7d930d013e
commit cc0faf9da4
@@ -20,6 +20,7 @@ class YAMLEmptySequenceItemBackspaceHandler : BackspaceHandlerDelegate() {
// when the char is already deleted, and in the case when the deleted char was in the end of a file,
// the "-" is not parsed by a lexer as YAMLTokenTypes.SEQUENCE_MARKER anymore.
if (!c.isWhitespace()) return false
if (c != ' ') return false
if (!file.language.isKindOf(YAMLLanguage.INSTANCE)) return false