Skip to content

Commit

Permalink
Fix some sequences not printing in titles/filenames
Browse files Browse the repository at this point in the history
This fixes issue #51: for example "temp\home" is shown as "temp ome".
  • Loading branch information
lefth committed Jul 18, 2022
1 parent 3fc8f67 commit 26322b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/SimpleBookmark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ function draw_list()
end
end

p = p:gsub("\\", "/"):gsub("{", "\\{"):gsub("^ ", "\\h")
osd_msg = osd_msg .. osd_color .. osd_key .. osd_index .. p

if list_contents[#list_contents - i][osd_time_type] and tonumber(list_contents[#list_contents - i][osd_time_type]) > 0 then
Expand Down
1 change: 1 addition & 0 deletions scripts/SimpleHistory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ function draw_list()
end
end

p = p:gsub("\\", "/"):gsub("{", "\\{"):gsub("^ ", "\\h")
osd_msg = osd_msg .. osd_color .. osd_key .. osd_index .. p

if list_contents[#list_contents - i][osd_time_type] and tonumber(list_contents[#list_contents - i][osd_time_type]) > 0 then
Expand Down
1 change: 1 addition & 0 deletions scripts/SmartCopyPaste_II.lua
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ function draw_list()
end
end

p = p:gsub("\\", "/"):gsub("{", "\\{"):gsub("^ ", "\\h")
osd_msg = osd_msg .. osd_color .. osd_key .. osd_index .. p

if list_contents[#list_contents - i][osd_time_type] and tonumber(list_contents[#list_contents - i][osd_time_type]) > 0 then
Expand Down

0 comments on commit 26322b7

Please sign in to comment.