mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-181069 yaml: smart delete Backspace handler: more generic "isWhitespace" checking
(IJ-CR-160001) GitOrigin-RevId: 079e2e0ae53c7a8757bd98265a3280337b02e862
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user