mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 16:10:07 +01:00
commit
69d58040aa
3 changed files with 5 additions and 8 deletions
3
.github/workflows/large-scope.yml
vendored
3
.github/workflows/large-scope.yml
vendored
|
|
@ -82,9 +82,6 @@ jobs:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
type: unix
|
type: unix
|
||||||
- os: windows-latest
|
|
||||||
target: x86_64-pc-windows-msvc
|
|
||||||
type: windows
|
|
||||||
steps:
|
steps:
|
||||||
- name: Rust install
|
- name: Rust install
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ fn find_raw_spans<'a>(
|
||||||
// the start and end byte indices with respect to the chunk.
|
// the start and end byte indices with respect to the chunk.
|
||||||
let chunk_matches = all_regexes
|
let chunk_matches = all_regexes
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|(&ref pat_name, reg)| {
|
.filter_map(|(pat_name, reg)| {
|
||||||
reg.find_iter(chunk)
|
reg.find_iter(chunk)
|
||||||
.next()
|
.next()
|
||||||
.map(|reg_match| (pat_name, reg, reg_match))
|
.map(|reg_match| (pat_name, reg, reg_match))
|
||||||
|
|
@ -131,7 +131,7 @@ fn find_raw_spans<'a>(
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// Never hint or break ansi color sequences.
|
// Never hint or break ansi color sequences.
|
||||||
if *pat_name != "ansi_colors" {
|
if **pat_name != "ansi_colors" {
|
||||||
let text = reg_match.as_str();
|
let text = reg_match.as_str();
|
||||||
|
|
||||||
// All patterns must have a capturing group: try obtaining
|
// All patterns must have a capturing group: try obtaining
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ impl<'a> ViewController<'a> {
|
||||||
let line_width = self.term_width as usize;
|
let line_width = self.term_width as usize;
|
||||||
|
|
||||||
let new_pos_x = pos_x % line_width;
|
let new_pos_x = pos_x % line_width;
|
||||||
let new_pos_y = self.wrapped_lines[pos_y as usize].pos_y + pos_x / line_width;
|
let new_pos_y = self.wrapped_lines[pos_y].pos_y + pos_x / line_width;
|
||||||
|
|
||||||
(new_pos_x, new_pos_y)
|
(new_pos_x, new_pos_y)
|
||||||
}
|
}
|
||||||
|
|
@ -1000,7 +1000,7 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
|
||||||
let alphabet = alphabet::Alphabet("abcd".to_string());
|
let alphabet = alphabet::Alphabet("abcd".to_string());
|
||||||
let reverse = true;
|
let reverse = true;
|
||||||
let unique_hint = false;
|
let unique_hint = false;
|
||||||
let mut model = textbuf::Model::new(
|
let model = textbuf::Model::new(
|
||||||
&lines,
|
&lines,
|
||||||
&alphabet,
|
&alphabet,
|
||||||
use_all_patterns,
|
use_all_patterns,
|
||||||
|
|
@ -1026,7 +1026,7 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - ";
|
||||||
let hint_style = None;
|
let hint_style = None;
|
||||||
|
|
||||||
let ui = ViewController::new(
|
let ui = ViewController::new(
|
||||||
&mut model,
|
&model,
|
||||||
wrap_around,
|
wrap_around,
|
||||||
default_output_destination,
|
default_output_destination,
|
||||||
&rendering_colors,
|
&rendering_colors,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue