mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[visual] Improve cursor position in empty list items (#20611)
GitOrigin-RevId: 08a83b509e217573f680ca4a635d9480ade9b1ae
This commit is contained in:
parent
53e46632a9
commit
6f8a9a0f81
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ const wrapRangeInList = (
|
||||||
]
|
]
|
||||||
|
|
||||||
// map through the prefix
|
// map through the prefix
|
||||||
range = EditorSelection.cursor(range.to).map(state.changes(changes), 1)
|
range = EditorSelection.cursor(range.to, -1).map(state.changes(changes), 1)
|
||||||
|
|
||||||
changes.push({
|
changes.push({
|
||||||
from: toLine.to,
|
from: toLine.to,
|
||||||
|
|
|
@ -110,7 +110,7 @@ export const visualKeymap = Prec.highest(
|
||||||
|
|
||||||
return {
|
return {
|
||||||
changes: { from, insert },
|
changes: { from, insert },
|
||||||
range: EditorSelection.cursor(pos),
|
range: EditorSelection.cursor(pos, -1),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue