[gedit/zbrown/deteplification-src: 560/633] View: clarify a comment
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/zbrown/deteplification-src: 560/633] View: clarify a comment
- Date: Sat, 10 Apr 2021 12:48:10 +0000 (UTC)
commit 11610948983ad37e44748cb81b82314b19f824dd
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Nov 24 22:45:09 2020 +0100
View: clarify a comment
The comment said "carriage return", but the default implementation from
GtkTextView doesn't remove the newline either. I thought "carriage
return" meant that the \n was correctly removed by GtkTextView but not
\r. With the "newline" term it's hopefully less confusing.
gedit/gedit-view.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 40cef2007..66727ce9d 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -612,9 +612,9 @@ gedit_view_delete_from_cursor (GtkTextView *text_view,
GtkDeleteType type,
gint count)
{
- /* We override the standard handler for delete_from_cursor since
- * the GTK_DELETE_PARAGRAPHS case is not implemented as we like (i.e. it
- * does not remove the carriage return in the previous line).
+ /* We override the standard handler for delete_from_cursor since the
+ * GTK_DELETE_PARAGRAPHS case is not implemented as we like (i.e. it
+ * does not remove the newline in the previous line).
*/
switch (type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]