[Github-comments] [geany/geany] Improve auto close (#2943)

Jeremias Kleer notifications at xxxxx
Thu Nov 11 15:58:20 UTC 2021


@jeremiaskleer commented on this pull request.



>  	}
 
 	if (get_project_pref(auto_continue_multiline))
 	{	/* " * " auto completion in multiline C/C++/D/Java comments */
-		auto_multiline(editor, line);
+		if (auto_multiline(editor, line, FALSE) && doHandleBracket) {

The output of
/** <ENTER>int main() {<ENTER>
with auto-close enabled (<ENTER> == pressing enter-key on keyboard) in an c++ document is

with the change ("|" shows the cursor afterwards:
```
/**
 * int main() {
 *     |
 * }
```

without:
```
/**
 * int main() {
|*
}
```
and in original Geany 1.37 on Windows:
```
/**
 * int main() {
 *|})

```

-- 
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/pull/2943#discussion_r747621614
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211111/af93b00f/attachment.htm>


More information about the Github-comments mailing list