From 3d9b7e86f0bbb14fad89087a5a6525c0775706bf Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 8 Feb 2012 08:40:23 +0000 Subject: [PATCH] Set the attribute to the current attribute when in overwrite mode (ie: not insert) instead of setting it to the character that is modified. Fixes the weird colour while in overwrite mode bug reported by DigitalMan Thanks! --- exec/fseditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index e299eace5b..c2f5a33dd4 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -1394,7 +1394,7 @@ function add_char(key) +key +line[ypos].text.substr(xpos+1); line[ypos].attr=line[ypos].attr.substr(0,xpos) - +key + +ascii(curattr) +line[ypos].attr.substr(xpos+1); } xpos++; -- GitLab