| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
If we don't own the buffer, then we don't have a guarantee that the buffer
is one byte bigger than any count/length we've received. Mke sure to only
dereference that byte when we do.
Related #309
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
When combined with unfocused text selection background, it at least gives
you some ability to determine the difference between them.
|
|
|
|
|
| |
And use that instead of def:keyword which will map to that anyway. This
ensures that things like sizeof are highlighted in C.
|
|
|
|
|
| |
We can also use the alpha in g-t-e to apply more vibrant colors to the
current match selection.
|
|
|
|
|
|
|
| |
This makes the scheme match closer to the other style schemes which are
somewhat relied upon for rather important languages like Markdown.
Related GNOME/gnome-text-editor#506
|
|
|
|
|
|
|
| |
This changed when porting from Builder to GtkSourceView. Update the
documentation to match.
Fixes #312
|
|
|
|
|
|
|
| |
`gi-docgen` version 2022.2 throws an error on this reference,
but even if it's accepted it ends up as a 404 link.
Using `[error@` correctly links to
https://docs.gtk.org/glib/error.RegexError.html
in the generated documentation.
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we are expanding snippets, and there is no completion provider used to
show the available snippets, commit 04683f367 broke the ability to reach
the code which would try to expand.
This attempts to preserve the existing behavior to make that work while
also doing the intention of commit 04683f367 to hide the informative when
it is no longer necessary (and only if a snippet was touched).
Fixes #302
|
|
|
|
|
|
|
|
|
|
|
| |
Revert completion list snapshotting
See merge request GNOME/gtksourceview!298
(cherry picked from commit 23425f6a01494b8323500c7e1a53ec5c0a72d623)
4709b2a5 Revert "listsnapshot: allow mismatched hold()/release()"
d7ad8535 Revert "completionlistbox: lock listmodel items during snapshot"
334139e1 Revert "listsnapshot: add snapshotting listmodel"
|
|
|
|
|
|
|
|
|
| |
vim: ignore gtk_text_view_im_context_filter_keypress
See merge request GNOME/gtksourceview!297
(cherry picked from commit 834373dbeb604c630644ba9a44a2948020b32542)
26c2549d vim: ignore gtk_text_view_im_context_filter_keypress
|
|\
| |
| |
| |
| | |
Fix typo in documentation
See merge request GNOME/gtksourceview!293
|
|/ |
|
|
|
|
|
|
|
|
| |
This helps ensure that we are not handling changes to GtkAdjustment that
happen during the LAYOUT phase of the frame clock.
Instead we defer it to the next frame as it's too late to affect any sort
of allocations on this frame.
|
|
|
|
|
| |
We can allow supplimental release, so long as we at least get a call to
release().
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This avoids the GtkSourceCompletionContext (a GListModel) changes that
could come in during the snapshot cycle from messing with the rows that
we want to see snapshotted.
Related https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1840
|
|/
|
|
|
|
|
| |
This is a simple GListModel that attempts to snapshot a range of items in
an underlying GListModel between calls to hold(pos,len) and release(). The
goal here is to have list stability during a frame clock cycle regardless
of what the underlying model is doing.
|
|\
| |
| |
| |
| | |
llvm.lang: Add missing 'sge' keyword
See merge request GNOME/gtksourceview!294
|
|/
|
|
|
|
| |
This adds the missing 'sge' (signed greater or equal) argument for the icmp
instruction.
https://llvm.org/docs/LangRef.html#icmp-instruction
|
|
|
|
| |
Fixes #301
|
| |
|
|
|
|
|
| |
This allows using arrow keys to find other commands in the history which
match the currently typed prefix.
|
|
|
|
| |
This wasn't translated to GtkSourceView style when imported.
|
|
|
|
|
|
| |
This makes sure that we walk strings which are expected as UTF-8 by
characters so we don't split the multi-byte character. However, if
G_REGEX_RAW is set, walk by byte.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is a workaround until we can be sure that we can show popovers from
the hover assistants. Currently, that can break input pretty badly, so
this is in place to help avoid that issue by users.
This basically makes it so GtkLabel (and potentially others) cannot get
their sequence event to show the context menu since we don't have other
mechanisms to prevent it.
|
|
|
|
|
|
| |
If we click, and that causes the insertion mark to move, we don't want to
cancel our request to potentially show hover information at that position
or the user would have to wiggle to get it to show up.
|
|
|
|
|
|
| |
If our parent widget (the source view) is not mapped, then we really don't
want to be showing any additional assistants as they'd be displayed over
the wrong widget (likely in a GtkStack or GtkNotebok, etc).
|
|
|
|
|
|
| |
If you switch views in a stack for exmple, we expect to get child-visible
set to false, which then causes the view to unmap. Use that to ensure all
our assistants are dismissed.
|
|
|
|
|
|
|
|
|
| |
This can easily happen if you have an operator that caused the completion
like "." as the symbol chars will break at the "." and leave us with
bounds that are identical.
If we track that the interactive completion came from a trigger, we can
ignore this and assume we want to begin completion immediately.
|
|\
| |
| |
| |
| | |
go.lang: add Go 1.18 comparable and any keywords
See merge request GNOME/gtksourceview!288
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This requires on state within the testsuite directory, and therefore cannot
be used for system installed tests.
Fixes #291
|
|
|
|
|
| |
We need to provide the length or we wont properly join the strings in all
cases here.
|
|
|
|
|
| |
This just looks a bit better since we want to match under the whole line
not just where underbar might be.
|
|
|
|
|
| |
These can use error underlines instead of the blocky forms that are there
already as we've done in other schemes.
|
|\
| |
| |
| |
| | |
meson: Update pcre2 wrap
See merge request GNOME/gtksourceview!286
|