Skip to content

Commit

Permalink
Merge pull request #1609 from contour-terminal/fix/vi-mode-big-moves
Browse files Browse the repository at this point in the history
Fix vi-modifier `viW` / `oiW` / `yiW` as well as `B` and `W` (white space delimited motions)
  • Loading branch information
christianparpart authored Sep 30, 2024
2 parents 228a95d + f13fc00 commit a7516ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@
<release version="0.5.1" urgency="medium" type="development">
<description>
<ul>
<li>Port to C++20's `std::format()` (#1598)</li>
<li>Fixes vi-mode motions like `viW`, `yiW`, `oiW` as well as `B` and `W`</li>
<li>Enable support for Unicode version 16.0.0 (#1606)</li>
<li>Port to C++20's `std::format()` (#1598)</li>
<li>Drop support for Ubuntu 23.10 and older. In order to have less burdain of maintencne, we only support the latest LTS of Ubuntu, which currently is 24.04 (#1607)</li>
<li>Fix rendered backend loading from config</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion src/vtbackend/Line.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ class Line
return unbox<size_t>(column) >= trivialBuffer().text.size()
|| trivialBuffer().text[column.as<size_t>()] == 0x20;
}
return inflatedBuffer().at(unbox<size_t>(column)).empty();
auto const& cell = inflatedBuffer().at(unbox<size_t>(column));
return cell.empty() || (cell.codepointCount() == 1 && cell.codepoint(0) == 0x20);
}

[[nodiscard]] uint8_t cellWidthAt(ColumnOffset column) const noexcept
Expand Down

0 comments on commit a7516ca

Please sign in to comment.