mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 19:43:06 +00:00
💅
This commit is contained in:
parent
3fa141846b
commit
1678564800
2 changed files with 5 additions and 5 deletions
|
@ -161,7 +161,7 @@ Commands may be multiline:
|
|||
```sh
|
||||
# This will output foo\nyes
|
||||
echo foo
|
||||
echo bar | grep q -b \
|
||||
true \
|
||||
&& echo yes \
|
||||
|| echo no
|
||||
```
|
||||
|
|
|
@ -120,8 +120,11 @@ fn read_file(
|
|||
for l in lines {
|
||||
let line = l.unwrap();
|
||||
|
||||
// blank
|
||||
if line.is_empty() {
|
||||
}
|
||||
// tag
|
||||
if line.starts_with('%') {
|
||||
else if line.starts_with('%') {
|
||||
if !write_cmd(&tags, &comment, &snippet, tag_width, comment_width, stdin) {
|
||||
break;
|
||||
}
|
||||
|
@ -151,9 +154,6 @@ fn read_file(
|
|||
(String::from(command), opts),
|
||||
);
|
||||
}
|
||||
// blank
|
||||
else if line.is_empty() {
|
||||
}
|
||||
// snippet
|
||||
else {
|
||||
snippet.push_str(display::LINE_SEPARATOR);
|
||||
|
|
Loading…
Reference in a new issue