This commit is contained in:
Tig
2025-06-09 14:29:29 -06:00
committed by GitHub
parent f3c80d99e1
commit b59ac3b69c
2 changed files with 9 additions and 8 deletions

View File

@@ -511,8 +511,8 @@
"Style": "None"
},
"Editable": {
"Foreground": "Goldenrod",
"Background": "WhiteSmoke",
"Foreground": "Black",
"Background": "LemonChiffon",
"Style": "None"
},
"ReadOnly": {
@@ -565,8 +565,8 @@
"Style": "None"
},
"Editable": {
"Foreground": "Goldenrod",
"Background": "WhiteSmoke",
"Foreground": "Black",
"Background": "LemonChiffon",
"Style": "None"
},
"ReadOnly": {
@@ -669,7 +669,7 @@
},
"Highlight": {
"Foreground": "Black",
"Background": "LightGray",
"Background": "LemonChiffon",
"Style": "None"
},
"Editable": {
@@ -727,7 +727,7 @@
"Style": "None"
},
"Editable": {
"Foreground": "Goldenrod",
"Foreground": "Black",
"Background": "WhiteSmoke",
"Style": "None"
},

View File

@@ -3,6 +3,7 @@
// TextView.cs: multi-line text editing
using System.Globalization;
using System.Runtime.CompilerServices;
using static Unix.Terminal.Delegates;
namespace Terminal.Gui.Views;
@@ -1868,6 +1869,7 @@ public class TextView : View, IDesignable
if (col < right)
{
SetAttributeForRole (ReadOnly ? VisualRole.ReadOnly : VisualRole.Editable);
ClearRegion (col, row, right, row + 1);
}
@@ -1876,11 +1878,10 @@ public class TextView : View, IDesignable
if (row < bottom)
{
SetAttributeForRole (ReadOnly ? VisualRole.ReadOnly : VisualRole.Editable);
ClearRegion (Viewport.Left, row, right, bottom);
}
//PositionCursor ();
_isDrawing = false;
return false;