[gnome-builder/gnome-builder-43] libide/sourceview: drop <> from insert-matching-braces
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] libide/sourceview: drop <> from insert-matching-braces
- Date: Tue, 27 Sep 2022 19:14:01 +0000 (UTC)
commit 0c2a383b2023ccb935f7b066c26d6c70061d0cca
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 27 12:13:41 2022 -0700
libide/sourceview: drop <> from insert-matching-braces
Fixes #1824
src/libide/sourceview/ide-source-view.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index ae1adb033..f1d1088d5 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -471,7 +471,6 @@ ide_source_view_maybe_delete_match (IdeSourceView *self)
case '(': match = ')'; break;
case '"': match = '"'; break;
case '\'': match = '\''; break;
- case '<': match = '>'; break;
default: match = 0; break;
}
@@ -594,9 +593,16 @@ ide_source_view_key_pressed_cb (IdeSourceView *self,
insert = "\"\"";
break;
+#if 0
+ /* We don't do this because it makes it very annoying to do things
+ * like << in any language, without much benefit for Foo<T>.
+ *
+ * See https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1824
+ */
case GDK_KEY_less:
insert = "<>";
break;
+#endif
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]