This is probably a bug in scintilla / ctags / whatever.  Please forward 
appropriately.

Save the following as a normal file:
```
Hello [lovely
world](http://example.com/with/very/long/URL/that/cant/be/wrapped/reasonably.php)

Asdf
```
Note that the line breaks are important.  `Asdf` should be on the forth line.

Open this file in geany, move the cursor to the end of the line (right after 
the closing parenthesis that closes the link) and press 'return'.  ('Enter' has 
the same effect.)

Expected behavior: a new line appears. Duh. (Nothing else should change.)

Actual behavior: a new line appears … and everything afterwards is also part of 
that link. At least that's what the syntax highlighting suddenly indicates. The 
whole rest of the file is affected; it doesn't reset at paragraph boundaries or 
any other sane "well no kind of formatting can cross this point anyway" border.

Manual workaround: find the "link" that caused all this, insert a character 
before it and delete it again. This seems to cause re-parsing of the link, and 
this time it works.

```
$ geany --version
geany 1.27 (git >= d1fcd9f) (kompiliert am 2016-01-03 mit GTK 2.24.29, GLib 
2.46.2)
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/971

Reply via email to