Project

General

Profile

Actions

Bug #5532

closed

New Script Editor doesn't syntax highlight menus properly in some cases

Added by westor (GR) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Interface
Target version:
Start date:
04/05/2022
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

When you scrolling up/down the editor it seems some parts are not colorized as expected, you can see that better in the following example video.

- Thanks!


Files

AdiIRC_2022-04-05_01-38-42.mp4 (5.22 MB) AdiIRC_2022-04-05_01-38-42.mp4 westor (GR), 04/05/2022 12:42 AM
Actions #1

Updated by Per Amundsen over 2 years ago

As always, since it's not possible to put a video in the menu editor to test, I'll need a small code example that reproduces the problem.

Actions #2

Updated by westor (GR) over 2 years ago

If you place this under Edit Menus -> Link and try scrolling at the bottom you will see that it won't colorize correct.

Open in browser:/url -w $$1
Copy link:/clipboard $$1
-
$iif($regex($1,$img_pattern) || *imgur.com* iswm $1 || *ibb.co* iswm $1 || *pixxxels.cc* iswm $1 || *pasteall.org* iswm $1 || *postimg.cc* iswm $1,Show Inline Image): {
  var %line_last = $fline($active,* $+ $1 $+ *,0)
  var %line = $fline($active,* $+ $1 $+ *,%line_last)

  if ($right($1,5) == .jpeg) || ($right($1,5) == .tiff) || ($right($1,4) == .png) || ($right($1,4) == .jpg) || ($right($1,4) == .ico) || ($right($1,4) == .gif) { inlineimage -ai $+ $calc(%line +1) $1 | return }

  if (*imgur.com* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
  if (*ibb.co* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
  if (*pixxxels.cc* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
  if (*pasteall.org* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
  if (*postimg.cc* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
}
$iif($regex($1,$img_pattern),Hide Inline Image): { inlineimage -ra $1 }
-
$iif($regex($1,$img_pattern),Open Inline Image): {
  var %n = $md5($1-,0)

  if ($readini($adiircini,n,InlineImages,InlineImagesUseTempFolder) == True) { var %f = $envvar(temp) $+ \AdiIRC\ $+ %n }
  else { var %f = $adiircdircache\preview\ $+ %n }

  if ($file(%f)) { pic $qt(%f) }
  else { noop $input(That image does NOT exist on the cache! $crlf $crlf $+ $+ $qt(%f),houd,Error) }
}
$iif($regex($1,$img_pattern),Open Inline Image in Windows): {
  var %n = $md5($1-,0)

  if ($readini($adiircini,n,InlineImages,InlineImagesUseTempFolder) == True) { var %f = $envvar(temp) $+ \AdiIRC\ $+ %n }
  else { var %f = $adiircdircache\preview\ $+ %n }

  if ($file(%f)) { run $qt(%f) }
  else { noop $input(That image does NOT exist on the cache! $crlf $crlf $+ $+ $qt(%f),houd,Error) }
}
-
Actions #3

Updated by Per Amundsen over 2 years ago

  • Subject changed from Menus Editor doesn't colorize correct on scrolling to New Script Editor doesn't syntax highlight menus properly in some cases
  • Status changed from New to Resolved
Actions #4

Updated by Per Amundsen over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF