[gedit] View: clarify a comment



commit cd074e9e3fb736193c8b4301b5ac3ef1d4127577
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 3a97b54a7..af719a6c2 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -585,9 +585,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]