From 2390c46d06f90a4115857b436205307cdb3aaea0 Mon Sep 17 00:00:00 2001
From: Slava Zanko <slavazanko@gmail.com>
Date: Fri, 27 Mar 2009 22:48:31 +0200
Subject: [PATCH] Rename '*persistent_block*' to '*persistent_selection*' for
 more sence. Thanks to Ossi

---
 edit/edit.c        | 12 ++++++------
 edit/edit.h        |  2 +-
 edit/editoptions.c |  6 +++---
 src/setup.c        |  2 +-
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/edit/edit.c b/edit/edit.c
index 6f70ee44f..4906c1c2d 100644
--- a/edit/edit.c
+++ b/edit/edit.c
@@ -63,7 +63,7 @@ int option_fake_half_tabs = 1;
 int option_save_mode = EDIT_QUICK_SAVE;
 int option_save_position = 1;
 int option_max_undo = 32768;
-int option_persistent_blocks = 0;
+int option_persistent_selections = 0;
 
 int option_edit_right_extreme = 0;
 int option_edit_left_extreme = 0;
@@ -2224,7 +2224,7 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
     case CK_Down:
     case CK_Left:
     case CK_Right:
-        if ( !option_persistent_blocks ) {
+        if ( !option_persistent_selections ) {
             if (column_highlighting)
                 edit_push_action (edit, COLUMN_ON);
             column_highlighting = 0;
@@ -2257,8 +2257,8 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
     /* basic cursor key commands */
     switch (command) {
     case CK_BackSpace:
-        /* if non persistent block and text selected */
-        if ( !option_persistent_blocks ) {
+        /* if non persistent selection and text selected */
+        if ( !option_persistent_selections ) {
             if ( edit->mark1 != edit->mark2 ) {
                 edit_block_delete_cmd (edit);
                 break;
@@ -2282,8 +2282,8 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
 	edit_backspace (edit);
 	break;
     case CK_Delete:
-        /* if non persistent block and text selected */
-        if ( !option_persistent_blocks ) {
+        /* if non persistent selection and text selected */
+        if ( !option_persistent_selections ) {
             if ( edit->mark1 != edit->mark2 ) {
                 edit_block_delete_cmd (edit);
                 break;
diff --git a/edit/edit.h b/edit/edit.h
index 1ec68757a..783bcd533 100644
--- a/edit/edit.h
+++ b/edit/edit.h
@@ -282,7 +282,7 @@ extern int option_fill_tabs_with_spaces;
 extern int option_return_does_auto_indent;
 extern int option_backspace_through_tabs;
 extern int option_fake_half_tabs;
-extern int option_persistent_blocks;
+extern int option_persistent_selections;
 
 typedef enum {
     EDIT_QUICK_SAVE = 0,
diff --git a/edit/editoptions.c b/edit/editoptions.c
index 67671ab96..0f4a387cf 100644
--- a/edit/editoptions.c
+++ b/edit/editoptions.c
@@ -76,7 +76,7 @@ edit_options_dialog (void)
     int toption_save_position = option_save_position;
     int tedit_confirm_save = edit_confirm_save;
     int tedit_syntax_highlighting = option_syntax_highlighting;
-    int tedit_persistent_blocks = option_persistent_blocks;
+    int tedit_persistent_selections = option_persistent_selections;
     int toption_return_does_auto_indent = option_return_does_auto_indent;
     int toption_backspace_through_tabs = option_backspace_through_tabs;
     int toption_fake_half_tabs = option_fake_half_tabs;
@@ -160,7 +160,7 @@ edit_options_dialog (void)
     quick_widgets[3].str_result = &p;
     quick_widgets[5].text = tab_spacing;
     quick_widgets[5].str_result = &q;
-    quick_widgets[6].result = &tedit_persistent_blocks;
+    quick_widgets[6].result = &tedit_persistent_selections;
     quick_widgets[7].result = &tedit_syntax_highlighting;
     quick_widgets[8].result = &toption_save_position;
     quick_widgets[9].result = &tedit_confirm_save;
@@ -200,7 +200,7 @@ edit_options_dialog (void)
 	g_free (q);
     }
 
-    option_persistent_blocks = tedit_persistent_blocks;
+    option_persistent_selections = tedit_persistent_selections;
     option_syntax_highlighting = tedit_syntax_highlighting;
     edit_confirm_save = tedit_confirm_save;
     option_save_position = toption_save_position;
diff --git a/src/setup.c b/src/setup.c
index b3b2a9af6..636db0592 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -216,7 +216,7 @@ static const struct {
     { "editor_option_typewriter_wrap", &option_typewriter_wrap },
     { "editor_edit_confirm_save", &edit_confirm_save },
     { "editor_syntax_highlighting", &option_syntax_highlighting },
-    { "editor_persistent_blocks", &option_persistent_blocks },
+    { "editor_persistent_selections", &option_persistent_selections },
     { "editor_visible_tabs", &visible_tabs },
     { "editor_visible_spaces", &visible_tws },
 #endif /* USE_INTERNAL_EDIT */