Document type wrongly auto-detected as "Firejail profile" on first input with line break
System information
Arch Linux, Linux my-system 6.5.4-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 21 Sep 2023 11:06:39 +0000 x86_64 GNU/Linux
Package version gnome-text-editor-44.0-2
Text Editor (44.0)
GLib: 2.78.0 (2.76.3)
GTK: 4.12.2 (4.10.4)
GtkSourceView: 5.8.0 (5.8.0)
Libadwaita: 1.4.0 (1.3.3)
Enchant2: 2.5.0
gtk-theme-name: Adwaita-empty
GTK_THEME: unset
GdkDisplay: GdkWaylandDisplay
Documents Directory: /home/defaultuser/Documents
org.gnome.TextEditor restore-session = false [default=true]
org.gnome.TextEditor recolor-window = true
org.gnome.TextEditor show-map = false
org.gnome.TextEditor custom-font = 'Monospace 11'
org.gnome.TextEditor show-line-numbers = true [default=false]
org.gnome.TextEditor style-scheme = 'Adwaita-dark' [default='Adwaita']
org.gnome.TextEditor wrap-text = false [default=true]
org.gnome.TextEditor style-variant = 'follow'
org.gnome.TextEditor indent-style = 'tab'
org.gnome.TextEditor show-right-margin = true [default=false]
org.gnome.TextEditor spellcheck = false [default=true]
org.gnome.TextEditor auto-indent = true
org.gnome.TextEditor use-system-font = true
org.gnome.TextEditor keybindings = 'default'
org.gnome.TextEditor highlight-current-line = true [default=false]
org.gnome.TextEditor last-save-directory = 'file:///home/my-user/Documents' [default='']
org.gnome.TextEditor auto-save-delay = uint32 3
org.gnome.TextEditor discover-settings = true
org.gnome.TextEditor enable-snippets = false
org.gnome.TextEditor line-height = 1.2
org.gnome.TextEditor indent-width = -1
org.gnome.TextEditor show-grid = false
org.gnome.TextEditor draw-spaces = @as []
org.gnome.TextEditor right-margin-position = uint32 80
org.gnome.TextEditor tab-width = uint32 4 [default=uint32 8]
Nightly not tested, would require investing more time to figure out how than I am currently willing to spend on this issue.
Bug information
Steps to reproduce
- Open Text Editor
- Type or paste anything into it that contains or ends with a line break, reproducible with just "asdf
<LF>
"
Current behaviour
Document type gets set to "Firejail profile", which makes the text light up as syntax errors.
The impact of this glitch is aggravated by there not having been a patch release yet containing the fix for this other issue, so the user cannot manually change the document type back to "Unset" or "Plain text".
Screen recording:
Screencast_from_2023-09-23_16-18-40
Expected behaviour
Document type stays unset