This PR modifies `replace_all` to avoid the infinite loop. In each iteration, `replace_all` searches for `needle` starting from the beginning of `haystack`. If `replacement` contains `needle`, the result is an infinite loop. To prevent this from happening, `replace_all` should continue searching for `needle` from the end of the previous `replacement`.
Squashed and rebased from #1128. Resolves #936.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1232
-- Commit Summary --
* Markdown: Modify replace_all to avoid infinite loop
-- File Changes --
M markdown/src/viewer.c (7)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1232.patchhttps://github.com/geany/geany-plugins/pull/1232.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1232
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/pull/1232(a)github.com>
Please could **Geany** highlight the **var** keyword in Java?
![Var](https://github.com/geany/geany/assets/7548378/0de3deb0-2230-4906-b54c-18c7e725bf2d)
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3854
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3854(a)github.com>
Allow brave users to disable the confirmation dialog when replacing text in the whole session.
While modifying the docs, I noticed a missing various pref in the table and added it.
Because of the long names of the other and the new setting, the table grew and needed reformatting. I put this into a separate commit for easier review but we can probably squash them together afterwards.
Closes #3702.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3851
-- Commit Summary --
* Add a various pref to skip 'replace in session' confirmation dialog
* Add missing various pref docs
* Reformat various prefs table in docs
-- File Changes --
M doc/geany.txt (264)
M src/keyfile.c (2)
M src/plugindata.h (2)
M src/search.c (3)
M src/search.h (2)
-- Patch Links --
https://github.com/geany/geany/pull/3851.patchhttps://github.com/geany/geany/pull/3851.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3851
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3851(a)github.com>
* Improve documentation
* Add support for webkit2gtk-4.1 (no changes)
* Add a key binding & menu item for loading the current file into the web view (for e.g. static HTML pages)
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1295
-- Commit Summary --
* webhelper: Improve usage in README
* webhelper: Allow building with webkit2gtk-4.1
* webhelper: Show accelerator in context menu
* webhelper: Add support for loading the current file in the web view
-- File Changes --
M build/webhelper.m4 (11)
M webhelper/README (12)
M webhelper/src/gwh-browser.c (73)
M webhelper/src/gwh-browser.h (5)
M webhelper/src/gwh-keybindings.h (1)
M webhelper/src/gwh-plugin.c (10)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1295.patchhttps://github.com/geany/geany-plugins/pull/1295.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1295
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/pull/1295(a)github.com>
While working on [reproducible builds](https://reproducible-builds.org/) for [openSUSE](https://en.opensuse.org/openSUSE:Reproducible_Builds), I found that our `glfw` package varies in every build since the upgrade to geany-2.0
I extracted this minimal reproducer:
```bash
cat > test2.c <<EOF
typedef struct {
struct
{
} __value32;
} __atomic_wide_counter;
EOF
for i in 1 2 ; do geany -g glfw.c.tags test2.c ; md5sum glfw.c.tags ; done | sort -u | wc -l
2
```
The output differs thusly:
```diff
-__value32�64�__atomic_wide_counter�0�__anonceed23430108::anon_struct_1
+__value32�64�__atomic_wide_counter�0�__anone35807a60108::anon_struct_1
```
I think, there is the same problem with anon unions.
Please make output deterministic.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3717
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3717(a)github.com>
In addition to scope, anonymous type can appear also inside var_type which should be renamed as well.
Fixes #3717.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3785
-- Commit Summary --
* Rename both scope and var_type of anonymous types
-- File Changes --
M src/tagmanager/tm_ctags.c (40)
M tests/ctags/Makefile.am (1)
A tests/ctags/nested_anon.c (5)
A tests/ctags/nested_anon.c.tags (6)
M tests/meson.build (1)
-- Patch Links --
https://github.com/geany/geany/pull/3785.patchhttps://github.com/geany/geany/pull/3785.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3785
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3785(a)github.com>
Eliminates a warning on newer glib versions. Adds a fallback on older versions.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1334
-- Commit Summary --
* projectorganizer: Use g_pattern_spec_match_string() instead of g_pattern_match_string()
-- File Changes --
M projectorganizer/src/prjorg-project.c (2)
M projectorganizer/src/prjorg-sidebar.c (4)
M projectorganizer/src/prjorg-utils.c (4)
M projectorganizer/src/prjorg-utils.h (4)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1334.patchhttps://github.com/geany/geany-plugins/pull/1334.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1334
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/pull/1334(a)github.com>