From 5bb2ca218c850436b398f1ef662e0746be9994b2 Mon Sep 17 00:00:00 2001 From: svkalinin Date: Fri, 22 Jul 2022 16:00:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=82=D1=80=D0=B5=D0=B1=D1=83=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D0=B9=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=B4=D1=83?= =?UTF-8?q?=D1=80=D1=8B=20=D0=BF=D0=BE=D0=B4=D1=81=D0=B2=D0=B5=D1=82=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/editor.tcl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/editor.tcl b/lib/editor.tcl index e485cfd..c0b4182 100644 --- a/lib/editor.tcl +++ b/lib/editor.tcl @@ -173,7 +173,7 @@ namespace eval Editor { set shouldBeSpaces 0 for {set i 0} {$i < $len} {incr i} { if {[string index $prevSpaces $i] == "\t"} { - incr shouldBeSpaces $tabSize + incr shouldBeSpaces $cfgVariables(tabSize) } else { incr shouldBeSpaces } @@ -424,8 +424,9 @@ namespace eval Editor { $txt configure -linemap 0 } set fileType [string toupper [string trimleft [file extension $fileFullPath] "."]] - - if {[info procs Highlight::$fileType] ne ""} { + # puts ">$fileType<" + # puts [info procs Highlight::GO] + if {[info procs ::Highlight::$fileType] ne ""} { Highlight::$fileType $txt } else { Highlight::Default $txt